mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 18:41:17 -03:00
Refine the comments
This commit is contained in:
parent
f6168f2205
commit
b81a8bcd9d
2 changed files with 9 additions and 2 deletions
|
|
@ -104,6 +104,9 @@ HEREDOC
|
||||||
fi # if YES
|
fi # if YES
|
||||||
fi # if erase all
|
fi # if erase all
|
||||||
|
|
||||||
|
# Install essential packages.
|
||||||
|
xbps-install -y gptfdisk
|
||||||
|
|
||||||
# ----- Set Passphrase -----
|
# ----- Set Passphrase -----
|
||||||
# Input passphrase
|
# Input passphrase
|
||||||
echo "Type passphrase for the disk encryption."
|
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.
|
# 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.
|
# This is magical part. I have not understood why this is required.
|
||||||
# Refer https://wiki.voidlinux.org/Install_LVM_LUKS#Installation_using_void-installer
|
# 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
|
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
|
# Finishing message
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ mount -a
|
||||||
|
|
||||||
# Set up the kernel hook of encryption
|
# Set up the kernel hook of encryption
|
||||||
echo "...Install cryptsetup-initramfs package."
|
echo "...Install cryptsetup-initramfs package."
|
||||||
xbps-install lvm2 cryptsetup
|
xbps-install -y lvm2 cryptsetup
|
||||||
|
|
||||||
# Prepare a key file to embed in to the ramfs.
|
# Prepare a key file to embed in to the ramfs.
|
||||||
echo "...Prepair key file."
|
echo "...Prepair key file."
|
||||||
|
|
@ -57,9 +57,12 @@ echo "...grub-mkconfig."
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
# Leave chroot
|
# Leave chroot
|
||||||
exit
|
|
||||||
HEREDOC
|
HEREDOC
|
||||||
|
|
||||||
|
# Unmount all
|
||||||
|
echo "...Unmount all."
|
||||||
|
umount -R /mnt/target
|
||||||
|
|
||||||
# Finishing message
|
# Finishing message
|
||||||
cat <<HEREDOC
|
cat <<HEREDOC
|
||||||
****************** Post-install process finished ******************
|
****************** Post-install process finished ******************
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue