From: Marcin Krol Date: Tue, 21 May 2024 19:25:53 +0000 (+0200) Subject: - skip efivarfs when unmounting file systems X-Git-Tag: 0.5.4~2 X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=45ae276d50ff93eff38f1d160f3c736b7406042f;p=rc-scripts.git - skip efivarfs when unmounting file systems --- diff --git a/rc.d/rc.shutdown b/rc.d/rc.shutdown index 8c86fa4..efcaecb 100755 --- a/rc.d/rc.shutdown +++ b/rc.d/rc.shutdown @@ -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