mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
Allow the user to use wrap as a build step
This commit is contained in:
parent
b7c57cac8b
commit
f7adeba3d8
3 changed files with 36 additions and 5 deletions
|
|
@ -114,6 +114,15 @@ else
|
|||
SYSC=/sysc_image
|
||||
sys_transfer "${SYSC}" /sysc gzip patch
|
||||
if [ "${CHROOT_ONLY_SYSA}" != True ]; then
|
||||
if [ "${CHROOT_WRAP}" = True ]; then
|
||||
# bind mount dev, proc and sys into new root
|
||||
mkdir -p "${SYSC}/dev"
|
||||
mount --no-mtab --rbind /dev "${SYSC}/dev"
|
||||
mkdir -p "${SYSC}/proc"
|
||||
mount --no-mtab --rbind /proc "${SYSC}/proc"
|
||||
mkdir -p "${SYSC}/sys"
|
||||
mount --no-mtab --rbind /sys "${SYSC}/sys"
|
||||
fi
|
||||
exec chroot "${SYSC}" /init
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue