disable kernel console logs during root decrypt

This commit is contained in:
Hal Emmerich 2020-01-19 13:01:43 -06:00
parent 795f4a74f8
commit e77951d76a

View File

@ -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