stevset/scripts/chroot.txt
2024-05-06 21:44:11 -04:00

10 lines
208 B
Bash
Executable file

#!/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