forked from mirrored-repos/manjaro-tools
[util-iso-*] work on #40
This commit is contained in:
parent
19df5a0a28
commit
43878d23ea
2 changed files with 4 additions and 4 deletions
|
@ -11,12 +11,12 @@
|
|||
|
||||
# $1: new branch
|
||||
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_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"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
|
||||
# $1: new branch
|
||||
mount_root_image(){
|
||||
msg2 "mount [root-image] on [${1##*/}]"
|
||||
msg2 "overlayfs: mount [root-image] on [${1##*/}]"
|
||||
mkdir -p "${work_dir}/work"
|
||||
mount -t overlay overlay -olowerdir="${work_dir}/root-image",upperdir="$1",workdir="${work_dir}/work" "$1"
|
||||
}
|
||||
|
||||
mount_custom_image(){
|
||||
msg2 "mount [${1##*/}] on [${custom}-image]"
|
||||
msg2 "overlayfs: mount [${1##*/}] on [${custom}-image]"
|
||||
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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue