From 801c6ab340f823743b9305bf29a443055a7f8d4c Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Wed, 30 Jun 2021 23:39:35 +0900 Subject: [PATCH] fix degrading --- script/void-kaiten-yaki.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/void-kaiten-yaki.sh b/script/void-kaiten-yaki.sh index ee65a2c..3360fe5 100644 --- a/script/void-kaiten-yaki.sh +++ b/script/void-kaiten-yaki.sh @@ -182,6 +182,13 @@ else lvcreate -l ${LVROOTSIZE} -n ${LVROOTNAME} ${VGNAME} fi # if the root volun already exist +# ADD "rd.auto=1 cryptdevice=/dev/sda2:${LUKS_NAME} root=/dev/mapper/${VGNAME}-${ROOTNAME}" to GRUB. +# This is magical part. I have not understood why this is required. +# Anyway, without this modification, Void Linux doesn't boot. +# Refer https://wiki.voidlinux.org/Install_LVM_LUKS#Installation_using_void-installer +echo "...Modify /etc/default/grub." +sed -i "s#loglevel=4#loglevel=4 rd.auto=1 cryptdevice=/dev/sda2:${LUKS_NAME} root=/dev/mapper/${VGNAME}-${LVROOTNAME}#" /etc/default/grub + # ******************************************************************************* # Para-install stage # *******************************************************************************