commit 8f507628ee9d6eff95f4e001e56f40600c2fcb60
Author: Arkadiusz Miƛkiewicz <ar...@maven.pl>
Date:   Sun Apr 14 15:41:40 2024 +0200

    Skip cgroup/cgroup2 fs, too.

 rc.d/rc.shutdown | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rc.d/rc.shutdown b/rc.d/rc.shutdown
index c6ecd5a8..a3807dd7 100755
--- a/rc.d/rc.shutdown
+++ b/rc.d/rc.shutdown
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/5a02578c97b0a2c01cc453344397645efc437f18

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to