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)
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.


No differences found