[util-iso-aufs] perhaps fixes the long standing umount error on certain conditions

This commit is contained in:
udeved 2015-06-25 17:53:18 +02:00
parent 1f2b60af61
commit 9c681f2404

View file

@ -17,10 +17,7 @@ mount_root_image(){
mount_custom_image(){
msg2 "mount [${1##*/}] on [${custom}-image]"
mount -t aufs -o br="$1":${work_dir}/${custom}-image=ro none "$1"
msg2 "append [root-image] on [${1##*/}]"
mount -t aufs -o remount,append:${work_dir}/root-image=ro none "$1"
mount -t aufs -o br="$1":${work_dir}/${custom}-image=ro:${work_dir}/root-image=ro none "$1"
}
# $1: image path