[gparted] Do not mask virtual file systems when using systemctl (#708378)
- From: Mike Fleetwood <mfleetwo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Do not mask virtual file systems when using systemctl (#708378)
- Date: Tue, 8 Oct 2013 10:09:27 +0000 (UTC)
commit 43de8e326a9f6f099e5274619f16039bdc20c1a4
Author: Curtis Gedak <gedakc gmail com>
Date: Sat Oct 5 11:17:56 2013 -0600
Do not mask virtual file systems when using systemctl (#708378)
This enhancement removes the virtual file systems from the list of file
systems (shown below) to be masked.
The following output was captured using Fedora 19:
$ systemctl list-units --full --all -t mount
UNIT LOAD ACTIVE SUB DESCRIPTION
-.mount loaded active mounted /
boot.mount loaded active mounted /boot
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
proc-sys-fs-binfmt_misc.mount loaded inactive dead Arbitrary Executable File Formats File System
run-user-1000-gvfs.mount loaded active mounted /run/user/1000/gvfs
sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
sys-kernel-config.mount loaded active mounted Configuration File System
sys-kernel-debug.mount loaded active mounted Debug File System
tmp.mount loaded active mounted Temporary Directory
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
10 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
Bug #708378 - Advertised new feature: Use systemctl runtime mask to
prevent automounting (#701676) doesn't work
gparted.in | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gparted.in b/gparted.in
index ebd0809..a018958 100644
--- a/gparted.in
+++ b/gparted.in
@@ -115,7 +115,9 @@ fi
# Use systemctl to prevent automount by masking currently unmasked mount points
#
if test "x$HAVE_SYSTEMCTL" = "xyes"; then
- MOUNTLIST=`systemctl list-units --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' ' \
+ | egrep -v
'^(dev-hugepages|dev-mqueue|proc-sys-fs-binfmt_misc|run-user-.*-gvfs|sys-fs-fuse-connections|sys-kernel-config|sys-kernel-debug)'`
systemctl --runtime mask --quiet -- $MOUNTLIST
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]