live_rootfs="/live/rootfs/${d##*/}"
live_rootfs_list="${live_rootfs_list} ${live_rootfs}"
mkdir -p "${live_rootfs}"
- case d in
+ case "${d}" in
*.dir)
# do nothing # mount -o bind "${d}" "${live_rootfs}"
;;
then
local custom_mounts
custom_mounts="/tmp/custom_mounts.list"
- rm -rf ${custom_mounts} 2> /dev/null
+ rm -f ${custom_mounts}
# Gather information about custom mounts from devies detected as overlays
get_custom_mounts ${custom_mounts} ${overlay_devices}
local used_overlays
used_overlays=""
used_overlays=$(activate_custom_mounts ${custom_mounts})
- rm ${custom_mounts}
+ rm -f ${custom_mounts}
# Close unused overlays (e.g. due to missing $persistence_list)
for overlay in ${overlay_devices}