util-iso-aufs,overlayfs: mount the desktopfs when mounting livefs
This commit is contained in:
parent
f680616d46
commit
906f2fa2f0
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ mount_image_custom(){
|
||||||
|
|
||||||
mount_image_live(){
|
mount_image_live(){
|
||||||
IMAGE_ACTIVE_MOUNTS=()
|
IMAGE_ACTIVE_MOUNTS=()
|
||||||
track_image -t aufs -o br="$1":${work_dir}/livefs=ro:${work_dir}/rootfs=ro none "$1"
|
track_image -t aufs -o br="$1":${work_dir}/livefs=ro:${work_dir}/desktopfs=ro:${work_dir}/rootfs=ro none "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1: image path
|
# $1: image path
|
||||||
|
|
|
@ -30,7 +30,7 @@ mount_image_custom(){
|
||||||
mount_image_live(){
|
mount_image_live(){
|
||||||
IMAGE_ACTIVE_MOUNTS=()
|
IMAGE_ACTIVE_MOUNTS=()
|
||||||
mkdir -p "${mnt_dir}/work"
|
mkdir -p "${mnt_dir}/work"
|
||||||
track_image -t overlay overlay -olowerdir="${work_dir}/livefs":"${work_dir}/rootfs",upperdir="$1",workdir="${mnt_dir}/work" "$1"
|
track_image -t overlay overlay -olowerdir="${work_dir}/livefs":"${work_dir}/desktopfs":"${work_dir}/rootfs",upperdir="$1",workdir="${mnt_dir}/work" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
umount_image(){
|
umount_image(){
|
||||||
|
|
Loading…
Reference in a new issue