Skip to content

Commit

Permalink
disable kernel console logs during root decrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidHal committed Jan 19, 2020
1 parent 795f4a7 commit e77951d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/BuildResources/initramfs-init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e77951d

Please sign in to comment.