From ed43962a41df0dcbadd693d331e058c3699ef3a7 Mon Sep 17 00:00:00 2001 From: steveokard Date: Sun, 14 Jan 2024 22:02:23 -0500 Subject: [PATCH] automatic chroot --- scripts/chroot.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/chroot.txt diff --git a/scripts/chroot.txt b/scripts/chroot.txt new file mode 100644 index 0000000..ad293a5 --- /dev/null +++ b/scripts/chroot.txt @@ -0,0 +1,10 @@ +#!/bin/bash + +#step 1, get the drive + +sudo mkdir /mnt/chroot + +sudo mount $drive /mnt/chroot + +#test if BTRFS, if it is, might need @ dir +for f in proc sys dev ; do sudo mount --bind /$f /mnt/chroot/@/$f ; done