automatic chroot

This commit is contained in:
Stefen Auris 2024-01-14 22:02:23 -05:00
parent 33b01a7b83
commit ed43962a41

10
scripts/chroot.txt Normal file
View file

@ -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