From e77951d76ae39cb08d6b50b0de0817bac688b8fb Mon Sep 17 00:00:00 2001 From: Hal Emmerich Date: Sun, 19 Jan 2020 13:01:43 -0600 Subject: [PATCH] disable kernel console logs during root decrypt --- resources/BuildResources/initramfs-init | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/BuildResources/initramfs-init b/resources/BuildResources/initramfs-init index 5680eac..515d581 100644 --- a/resources/BuildResources/initramfs-init +++ b/resources/BuildResources/initramfs-init @@ -75,9 +75,11 @@ fi if [ -n "$(blkid ${ROOT_DEV}2 | grep crypto_LUKS)" ] then - #decrypt and mount the root filesystem + #decrypt and mount the root filesystem, disable kernel log messages to avoid clashing with the prompt + dmesg -D echo "Opening encrypted root partition, this will take 30s..." cryptsetup --tries 5 luksOpen ${ROOT_DEV}2 luksroot || rescue_shell + dmesg -E mount /dev/mapper/luksroot /newroot else # mount the unencrypted root filesystem