X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-misc-helpers.sh;fp=components%2F9990-misc-helpers.sh;h=2bf2db1734a8815c13400e302d3fe85b44d9b5a8;hb=bcd4476f2060542b746cfaa830648fa06ec0bd30;hp=c656f2380618c922b1c5aee8673cb7f576ae5ba2;hpb=cf0dc79d531aef28e681d386c120d6741b67ebc5;p=live-boot-grml.git diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh index c656f23..2bf2db1 100755 --- a/components/9990-misc-helpers.sh +++ b/components/9990-misc-helpers.sh @@ -1422,7 +1422,7 @@ get_custom_mounts () prev_dest="" # This sort will ensure that a source /a comes right before a source # /a/b so we only need to look at the previous source - sort -k2 -b ${custom_mounts} | + [ -e ${custom_mounts} ] && sort -k2 -b ${custom_mounts} | while read device source dest options do if echo ${source} | grep -qe "^${prev_source}\(/.*\)\?$"