Do not throw warnings when /tmp/custom_mounts.list does not exist.
authorEvgeni Golov <evgeni@grml.org>
Sat, 29 Mar 2014 13:37:07 +0000 (14:37 +0100)
committerDaniel Baumann <daniel@127011.net>
Sat, 29 Mar 2014 13:37:27 +0000 (14:37 +0100)
commit28ca8298a10702e391e420975205a98450d4cf7d
tree381d84f38e40bc4f67bb2d7fd10fd179f46e0033
parente31d7cec9e48617a7509bab38cac32958f431d4e
Do not throw warnings when /tmp/custom_mounts.list does not exist.

When no device for an overlay can be found, /tmp/custom_mounts.list
won't be created and will produce warnings while booting:

  sort: /tmp/custom_mounts.list: No such file or directory
  rm: can't remove '/tmp/custom_mounts.list': No such file or directory

Properly handle this case by calling rm with the -f option and calling
sort only when the file exists.
components/9990-misc-helpers.sh
components/9990-overlay.sh