[util-iso-*] work on #40

This commit is contained in:
Philip 2015-06-28 11:56:02 +02:00
parent 19df5a0a28
commit 43878d23ea
2 changed files with 4 additions and 4 deletions

View file

@ -11,12 +11,12 @@
# $1: new branch # $1: new branch
mount_root_image(){ mount_root_image(){
msg2 "mount [root-image] on [${1##*/}]" msg2 "aufs: mount [root-image] on [${1##*/}]"
mount -t aufs -o br="$1":${work_dir}/root-image=ro none "$1" mount -t aufs -o br="$1":${work_dir}/root-image=ro none "$1"
} }
mount_custom_image(){ mount_custom_image(){
msg2 "mount [${1##*/}] on [${custom}-image]" msg2 "aufs: mount [${1##*/}] on [${custom}-image]"
mount -t aufs -o br="$1":${work_dir}/${custom}-image=ro:${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"
} }

View file

@ -11,13 +11,13 @@
# $1: new branch # $1: new branch
mount_root_image(){ mount_root_image(){
msg2 "mount [root-image] on [${1##*/}]" msg2 "overlayfs: mount [root-image] on [${1##*/}]"
mkdir -p "${work_dir}/work" mkdir -p "${work_dir}/work"
mount -t overlay overlay -olowerdir="${work_dir}/root-image",upperdir="$1",workdir="${work_dir}/work" "$1" mount -t overlay overlay -olowerdir="${work_dir}/root-image",upperdir="$1",workdir="${work_dir}/work" "$1"
} }
mount_custom_image(){ mount_custom_image(){
msg2 "mount [${1##*/}] on [${custom}-image]" msg2 "overlayfs: mount [${1##*/}] on [${custom}-image]"
mkdir -p "${work_dir}/work" mkdir -p "${work_dir}/work"
mount -t overlay overlay -olowerdir="${work_dir}/${custom}-image":"${work_dir}/root-image",upperdir="$1",workdir="${work_dir}/work" "$1" mount -t overlay overlay -olowerdir="${work_dir}/${custom}-image":"${work_dir}/root-image",upperdir="$1",workdir="${work_dir}/work" "$1"
} }