dmesg debug level fix for initramfs

This commit is contained in:
rak-zero 2020-02-23 07:14:35 +01:00 committed by SolidHal
parent a621a6cc5f
commit 54e35e4ed4

View File

@ -76,10 +76,10 @@ fi
if [ -n "$(blkid ${ROOT_DEV}2 | grep crypto_LUKS)" ]
then
#decrypt and mount the root filesystem, disable kernel log messages to avoid clashing with the prompt
dmesg -D
dmesg -n 4
echo "Opening encrypted root partition, this will take 30s..."
cryptsetup --tries 5 luksOpen ${ROOT_DEV}2 luksroot || rescue_shell
dmesg -E
dmesg -n 7
mount /dev/mapper/luksroot /newroot
else
# mount the unencrypted root filesystem