automatic chroot
This commit is contained in:
parent
33b01a7b83
commit
ed43962a41
1 changed files with 10 additions and 0 deletions
10
scripts/chroot.txt
Normal file
10
scripts/chroot.txt
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue