Change systemctl to also mask /etc/fstab mount entries (#708378)

A mistake was made in the following commit:

Use systemctl runtime mask to prevent automounting (#701676)
4c109df9b5

The intention was to use 'systemctl list-units' rather than
'systemctl list-unit-files' so that auto-generated mount files would
also be masked and hence prevented from auto-mounting.

Now 'systemctl list-units' is used.

Bug #708378 - Advertised new feature: Use systemctl runtime mask to
              prevent automounting (#701676) doesn't work
This commit is contained in:
Curtis Gedak 2013-10-01 12:51:06 -06:00 committed by Mike Fleetwood
parent 0c9588e4e4
commit 1562994c6d
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ fi
# Use systemctl to prevent automount by masking currently unmasked mount points
#
if test "x$HAVE_SYSTEMCTL" = "xyes"; then
MOUNTLIST=`systemctl list-unit-files --full --all -t mount --no-legend | grep -v masked | cut -f1 -d' '`
MOUNTLIST=`systemctl list-units --full --all -t mount --no-legend | grep -v masked | cut -f1 -d' '`
systemctl --runtime mask --quiet -- $MOUNTLIST
fi