Update comment and supress noise

This commit is contained in:
Suikan 2021-06-29 09:29:23 +09:00
parent 6408e5ac74
commit 20d984a61a
3 changed files with 5 additions and 6 deletions

View file

@ -149,7 +149,7 @@ fi # if the root volun already exist
# Finishing message # Finishing message
cat <<HEREDOC cat <<HEREDOC
1-pre-install.sh : Done. Next, run the Ubiquity installer. 1-pre-install.sh : Done.
HEREDOC HEREDOC

View file

@ -18,7 +18,7 @@ fi # "sourced" validation
if [ ! -e /target/etc/default/grub ] ; then if [ ! -e /target/etc/default/grub ] ; then
cat <<HEREDOC 1>&2 cat <<HEREDOC 1>&2
***** ERROR : The /target/etc/default/grub is not ready. ***** ***** ERROR : The /target/etc/default/grub is not ready. *****
Perhaps, to early to execute this script. Perhaps, too early to execute this script.
Installation terminated. Installation terminated.
HEREDOC HEREDOC
@ -26,13 +26,12 @@ HEREDOC
fi # if grub file exists fi # if grub file exists
# Make target GRUB aware to the crypt partition # Make target GRUB aware to the crypt partition
echo "...add GRUB_ENABLE_CRYPTODISK entry to /target/etc/default/grub " echo "...Add GRUB_ENABLE_CRYPTODISK entry to /target/etc/default/grub "
echo "GRUB_ENABLE_CRYPTODISK=y" >> /target/etc/default/grub echo "GRUB_ENABLE_CRYPTODISK=y" >> /target/etc/default/grub
# Finishing message # Finishing message
cat <<HEREDOC cat <<HEREDOC
2-para-install.sh : Done. 2-para-install.sh : Done.
Make sure to click "Continue Testing", when the Ubiquity installer finishes.
HEREDOC HEREDOC

View file

@ -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."
apt install -y cryptsetup-initramfs apt -qq install -y cryptsetup-initramfs
echo "...Register key file to the ramfs" echo "...Register key file to the ramfs"
echo "KEYFILE_PATTERN=/etc/luks/*.keyfile" >> /etc/cryptsetup-initramfs/conf-hook echo "KEYFILE_PATTERN=/etc/luks/*.keyfile" >> /etc/cryptsetup-initramfs/conf-hook
echo "UMASK=0077" >> /etc/initramfs-tools/initramfs.conf echo "UMASK=0077" >> /etc/initramfs-tools/initramfs.conf
@ -38,7 +38,7 @@ echo "UMASK=0077" >> /etc/initramfs-tools/initramfs.conf
# 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."
mkdir /etc/luks mkdir /etc/luks
dd if=/dev/urandom of=/etc/luks/boot_os.keyfile bs=4096 count=1 dd if=/dev/urandom of=/etc/luks/boot_os.keyfile bs=4096 count=1 status=none
chmod u=rx,go-rwx /etc/luks chmod u=rx,go-rwx /etc/luks
chmod u=r,go-rwx /etc/luks/boot_os.keyfile chmod u=r,go-rwx /etc/luks/boot_os.keyfile