diff options
author | Zev Weiss <zev@bewilderbeest.net> | 2023-11-09 04:38:07 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2023-11-13 22:53:09 +0300 |
commit | 31ffcfb0d17e804bc3098a59f8ac91620f1c17fd (patch) | |
tree | dee3c27f8a3ec2e6c58cde5e50d3c8c94c63a16c | |
parent | c03f8b0b869eccae0f356c16e614b10153a35522 (diff) | |
download | openbmc-31ffcfb0d17e804bc3098a59f8ac91620f1c17fd.tar.xz |
meta-phosphor: initrdscripts: Reduce 'set -x' shutdown noise
Since commit 51d6af4e64f0 ("meta-phosphor: initrdscripts: fix shellcheck
issues") the shutdown script has been spewing a bunch of relatively
uninteresting 'IFS= read -r f' lines to the console interspersed between
the umount announcements. Instead of using a broad 'set -x', just
explicitly echo the desired information (which filesystems are being
unmounted).
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: Id28ba9c0e6ecd366a6476764ed7f82b8a102b13e
-rw-r--r-- | meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-shutdown.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-shutdown.sh b/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-shutdown.sh index 311bf3172d..9bafcfe217 100644 --- a/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-shutdown.sh +++ b/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-shutdown.sh @@ -25,12 +25,11 @@ mount --move /oldroot/run /mnt # Unmount paths with /oldroot /mnt under / and those ending with ro or rw # Use . to match any single character because busybox awk doesn't handle [/] -set -x awk '$2 ~ /^.oldroot|^.mnt|.r[ow]$/ { print $2 }' < /proc/mounts | sort -r | while IFS= read -r f do + echo "Unmounting $f" umount "$f" done -set +x update=/run/initramfs/update image=/run/initramfs/image- |