mount: ignore error when stop non-existing automount unit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 30 Nov 2017 08:55:04 +0000 (17:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 2 Dec 2017 15:28:59 +0000 (00:28 +0900)
commit6442c2109c18af9fd208b2631cacaf1347c384a7
treecc68b7a0e232854b496d07e290818d4cf9b29323
parent95f35cccf045b76cd2a4c28d873c239f5b50f638
mount: ignore error when stop non-existing automount unit

The command `systemd-mount -u` tries to stop both mount and automount
units. If the corresponding mount unit does not exist, then it is
user's fault, that is, the specified path is not a mount point.
However, not all mount units have corresponding autmount units.
Thus, the error about non-existing automount unit is not user's falut,
and showing the error may confuse users.
So, let's ignore the error of such case.
src/mount/mount-tool.c