Refine the comments

This commit is contained in:
Suikan 2021-06-29 21:38:16 +09:00
parent f6168f2205
commit b81a8bcd9d
2 changed files with 9 additions and 2 deletions

View file

@ -104,6 +104,9 @@ HEREDOC
fi # if YES
fi # if erase all
# Install essential packages.
xbps-install -y gptfdisk
# ----- Set Passphrase -----
# Input passphrase
echo "Type passphrase for the disk encryption."
@ -211,6 +214,7 @@ 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.
# 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}-${ROOTNAME}#" /etc/default/grub
# Finishing message

View file

@ -30,7 +30,7 @@ mount -a
# Set up the kernel hook of encryption
echo "...Install cryptsetup-initramfs package."
xbps-install lvm2 cryptsetup
xbps-install -y lvm2 cryptsetup
# Prepare a key file to embed in to the ramfs.
echo "...Prepair key file."
@ -57,9 +57,12 @@ echo "...grub-mkconfig."
grub-mkconfig -o /boot/grub/grub.cfg
# Leave chroot
exit
HEREDOC
# Unmount all
echo "...Unmount all."
umount -R /mnt/target
# Finishing message
cat <<HEREDOC
****************** Post-install process finished ******************