X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-overlay.sh;h=52c045a4ce4cdaf6e9220be47ffe2ed57a0f573a;hb=2054612ec4da08beae7d6f4c5357513d8d4e0c87;hp=6b620938fe496bffd3410c8327f118e13404c20d;hpb=3b9aa28dd04d694d49a07cf4d13fc8c704891f5b;p=live-boot-grml.git diff --git a/components/9990-overlay.sh b/components/9990-overlay.sh index 6b62093..52c045a 100755 --- a/components/9990-overlay.sh +++ b/components/9990-overlay.sh @@ -353,7 +353,7 @@ setup_unionfs () 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}" ;; @@ -376,7 +376,7 @@ setup_unionfs () 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} @@ -387,7 +387,7 @@ setup_unionfs () 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}