]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Skip cgroup/cgroup2 fs, too.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 14 Apr 2024 13:41:40 +0000 (15:41 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 14 Apr 2024 13:41:40 +0000 (15:41 +0200)
rc.d/rc.shutdown

index c6ecd5a80e19a51dd69787c3ad935edee3f0a6fd..a3807dd79595195fb1053782b646b58892fa3a62 100755 (executable)
@@ -77,7 +77,7 @@ if ! is_yes "$VSERVER"; then
                UMOUNT_IGNORE="/ $UMOUNT_IGNORE"
        fi
        remaining=$(awk -v ig="^($UMOUNT_IGNORE)$" 'BEGIN { gsub(/[\t ]+/, "|", ig); } \
-                       $3 !~ /^(proc|loopfs|devpts|devtmpfs|shm|iso9660|ramfs|tmpfs|sysfs|securityfs|squashfs)$/ \
+                       $3 !~ /^(proc|loopfs|devpts|devtmpfs|shm|iso9660|ramfs|tmpfs|cgroup|cgroup2|sysfs|securityfs|squashfs)$/ \
                        && $1 !~ /^(none|\/dev\/root)$/ \
                        && $2 !~ ig {print $2}' /proc/mounts)
        while [ -n "$remaining" -a "$retry" -gt 0 ]; do
@@ -101,7 +101,7 @@ if ! is_yes "$VSERVER"; then
 
                sleep 2
                remaining=$(awk -v ig="^($UMOUNT_IGNORE)$" 'BEGIN { gsub(/[\t ]+/, "|", ig); } \
-                               $3 !~ /^(proc|loopfs|devpts|devtmpfs|shm|iso9660|ramfs|tmpfs|sysfs|securityfs|squashfs)$/ \
+                               $3 !~ /^(proc|loopfs|devpts|devtmpfs|shm|iso9660|ramfs|tmpfs|cgroup|cgroup2|sysfs|securityfs|squashfs)$/ \
                                && $1 !~ /^(none|\/dev\/root)$/ \
                                && $2 !~ ig {print $2}' /proc/mounts)
                [ -z "$remaining" ] && break
This page took 0.054781 seconds and 4 git commands to generate.