mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-16 14:08:34 +00:00
Add run-chroot script to misc/
The script will first mount dev and proc and then it will chroot into the root/ directory and after exiting the chroot, it will unmount dev and proc. Can be used to quickly test the built system.
This commit is contained in:
parent
2ee7b8828a
commit
b4165184fe
16
misc/run-chroot
Executable file
16
misc/run-chroot
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo -n "Mounting dev... "
|
||||
sudo mount -o bind /dev root/dev
|
||||
echo "done."
|
||||
echo -n "Mounting proc... "
|
||||
sudo mount -t proc proc root/proc
|
||||
echo "done."
|
||||
echo "Chrooting..."
|
||||
sudo chroot root /bin/sh
|
||||
echo -n "Unmounting dev... "
|
||||
sudo umount root/dev
|
||||
echo "done."
|
||||
echo -n "Unmounting proc... "
|
||||
sudo umount root/proc
|
||||
echo "done."
|
Loading…
Reference in New Issue
Block a user