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



commit 1562994c6de14b205c1262053e1e0517b4a55744
Author: Curtis Gedak <gedakc gmail com>
Date:   Tue Oct 1 12:51:06 2013 -0600

    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)
    4c109df9b59e55699bd42023cf4007ee359793e9
    
    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

 gparted.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gparted.in b/gparted.in
index 3236087..ebd0809 100644
--- a/gparted.in
+++ b/gparted.in
@@ -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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]