Skip to content

Commit 36209d5

Browse files
davide125marcan
authored andcommitted
Make boot more quiet during the happy path
Signed-off-by: Davide Cavalca <[email protected]>
1 parent f67757c commit 36209d5

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

dracut/modules.d/99asahi-firmware/load-asahi-firmware.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ if [ ! -e "$VENDORFW/firmware.cpio" ]; then
4343
return 1
4444
fi
4545

46-
( cd /; cpio -i < "$VENDORFW/firmware.cpio" )
46+
( cd /; cpio --quiet -i < "$VENDORFW/firmware.cpio" )
4747
info ":: Asahi firmware unpacked successfully"

functions.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
# NOTE: These functions are used in the initramfs, so they must be ash/busybox compatible!
44

55
info() {
6-
echo "$@" 1>&2
6+
quiet=0
7+
if [ -e /lib/dracut-lib.sh ]; then
8+
if grep -q "rd.debug" /proc/cmdline; then
9+
quiet=0
10+
elif grep -q "quiet" /proc/cmdline; then
11+
quiet=1
12+
fi
13+
fi
14+
15+
[ "$quiet" -eq 0 ] && echo "$@" 1>&2
716
}
817

918
warn() {

0 commit comments

Comments
 (0)