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}" ]
chmod 1777 "${rootmnt}"/tmp
fi
+ # Correct the permission of /var/tmp:
+ if [ -d "${rootmnt}/var/tmp" ]
+ then
+ chmod 1777 "${rootmnt}"/var/tmp
+ fi
+
# Adding custom persistence
if [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ]
then