mirror of
https://github.com/pygos/build.git
synced 2024-11-22 02:59:47 +01:00
Cleanup: overlay mount setup
- initrd can use the handy wrapper script from the rootfs - we don't need to initialize the overlay dir, the wrapper script does that Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
parent
e0de98bf7d
commit
013692b999
1 changed files with 1 additions and 8 deletions
|
@ -85,14 +85,7 @@ fi
|
|||
if [ ! -z "$overlay_dev" ]; then
|
||||
mount_device "$overlay_dev" "/newroot/cfg/overlay" "$overlay_type"
|
||||
|
||||
mkdir -p /newroot/cfg/overlay/etc
|
||||
mkdir -p /newroot/cfg/overlay/etc_work
|
||||
mkdir -p /newroot/cfg/overlay/var_lib
|
||||
mkdir -p /newroot/cfg/overlay/var_lib_work
|
||||
mkdir -p /newroot/cfg/overlay/usr
|
||||
mkdir -p /newroot/cfg/overlay/usr_work
|
||||
|
||||
chroot /newroot mount -n -t overlay overlay -olowerdir=/cfg/preserve/etc,upperdir=/cfg/overlay/etc,workdir=/cfg/overlay/etc_work /etc
|
||||
chroot /newroot /lib/libexec/init/overlay.sh etc /etc
|
||||
else
|
||||
chroot /newroot mount --bind "/cfg/preserve/etc" "/etc"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue