Commit 71d0584a authored by Raphaël Hertzog's avatar Raphaël Hertzog

Merge branch 'feature-multiple-persistence-overlays' into 'master'

Accept multiple overlay names from persistence-label parameter

See merge request !23
parents b982538e 4aa52e5c
Pipeline #71452 passed with stage
in 3 minutes and 10 seconds
......@@ -200,7 +200,7 @@ Cmdline_old ()
;;
persistence-label=*)
custom_overlay_label="${_PARAMETER#persistence-label=*}"
custom_overlay_label=$(echo ${_PARAMETER#persistence-label=*} | sed -e 's/,/ /g')
;;
nopersistence)
......
......@@ -195,12 +195,15 @@ setup_unionfs ()
do
media="$(echo ${media} | tr ":" " ")"
case ${media} in
${custom_overlay_label}=*)
device="${media#*=}"
overlay_devices="${overlay_devices} ${device}"
;;
esac
for overlay_label in ${custom_overlay_label}
do
case ${media} in
${overlay_label}=*)
device="${media#*=}"
overlay_devices="${overlay_devices} ${device}"
;;
esac
done
done
fi
elif [ -n "${NFS_COW}" ] && [ -z "${NOPERSISTENCE}" ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment