mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-15 15:55:24 +01:00
After bootstrap, drop to a shell if needed, then shut down cleanly
This commit is contained in:
parent
133c05426c
commit
2a095a3301
3 changed files with 26 additions and 0 deletions
|
|
@ -27,5 +27,6 @@ mkdir -p /rootonly
|
|||
# This doesn't recursively mount - that's why we're able to copy everything over
|
||||
mount --bind / /rootonly
|
||||
cp -ar /rootonly/* /newroot/
|
||||
sed -e 's/newroot//' /rootonly/etc/mtab | grep -v 'rootonly' > /newroot/etc/mtab
|
||||
umount /rootonly
|
||||
switch_root /newroot /init
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue