]> TLD Linux GIT Repositories - rc-scripts.git/commitdiff
- skip efivarfs when unmounting file systems
authorMarcin Krol <hawk@tld-linux.org>
Tue, 21 May 2024 19:25:53 +0000 (21:25 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 21 May 2024 19:25:53 +0000 (21:25 +0200)
rc.d/rc.shutdown

index 8c86fa4cf64223a7d814aed6b41b3f1730ea92e4..efcaecb61e5d0c51e3927458b0364c512103bdb7 100755 (executable)
@@ -76,7 +76,7 @@ else
        UMOUNT_IGNORE="/ $UMOUNT_IGNORE"
 fi
 remaining=$(awk -v ig="^($UMOUNT_IGNORE)$" 'BEGIN { gsub(/[\t ]+/, "|", ig); } \
-               $3 !~ /^(proc|loopfs|devpts|devtmpfs|shm|iso9660|ramfs|tmpfs|cgroup|cgroup2|sysfs|securityfs|squashfs)$/ \
+               $3 !~ /^(proc|loopfs|devpts|devtmpfs|shm|iso9660|ramfs|tmpfs|cgroup|cgroup2|sysfs|securityfs|efivarfs|squashfs)$/ \
                && $1 !~ /^(none|\/dev\/root)$/ \
                && $2 !~ ig {print $2}' /proc/mounts)
 while [ -n "$remaining" -a "$retry" -gt 0 ]; do
@@ -115,7 +115,7 @@ while [ -n "$remaining" -a "$retry" -gt 0 ]; do
 
        sleep 2
        remaining=$(awk -v ig="^($UMOUNT_IGNORE)$" 'BEGIN { gsub(/[\t ]+/, "|", ig); } \
-                       $3 !~ /^(proc|loopfs|devpts|devtmpfs|shm|iso9660|ramfs|tmpfs|cgroup|cgroup2|sysfs|securityfs|squashfs)$/ \
+                       $3 !~ /^(proc|loopfs|devpts|devtmpfs|shm|iso9660|ramfs|tmpfs|cgroup|cgroup2|sysfs|securityfs|efivarfs|squashfs)$/ \
                        && $1 !~ /^(none|\/dev\/root)$/ \
                        && $2 !~ ig {print $2}' /proc/mounts)
        [ -z "$remaining" ] && break