forget to add

This commit is contained in:
Suikan 2021-07-02 07:20:28 +09:00
parent a3026f1ced
commit ce949a547a
2 changed files with 7 additions and 19 deletions

View file

@ -27,19 +27,12 @@ function parainstall() {
# Make target GRUB aware to the crypt partition # Make target GRUB aware to the crypt partition
# This must do it after start of the file copy by installer, but before the end of the file copy. # This must do it after start of the file copy by installer, but before the end of the file copy.
# If the environment is not GUI, keep quiet not to bother the TUI installer.
if [ ${PARAINSTMSG} -eq 1 ]; then
echo "...Add GRUB_ENABLE_CRYPTODISK entry to ${TARGETMOUNTPOINT}/etc/default/grub " echo "...Add GRUB_ENABLE_CRYPTODISK entry to ${TARGETMOUNTPOINT}/etc/default/grub "
fi
echo "GRUB_ENABLE_CRYPTODISK=y" >> ${TARGETMOUNTPOINT}/etc/default/grub echo "GRUB_ENABLE_CRYPTODISK=y" >> ${TARGETMOUNTPOINT}/etc/default/grub
# And then, wait for the end of installer process # And then, wait for the end of installer process
# If the environment is not GUI, keep quiet not to bother the TUI installer.
if [ ${PARAINSTMSG} -eq 1 ]; then
echo "...Waiting for the end of GUI/TUI installer." echo "...Waiting for the end of GUI/TUI installer."
fi wait $INSTALLER_PID
wait $installer_pid
# succesfull return # succesfull return
return 0 return 0

View file

@ -13,8 +13,6 @@ function main() {
# This is the mount point of the install target. # This is the mount point of the install target.
export TARGETMOUNTPOINT="/mnt/target" export TARGETMOUNTPOINT="/mnt/target"
# 1 : Show message during GUI/TUI installer, 0 : Do not show.
export PARAINSTMSG=0
# Distribution check # Distribution check
if ! uname -a | grep void -i > /dev/null ; then # "Void" is not found in the OS name. if ! uname -a | grep void -i > /dev/null ; then # "Void" is not found in the OS name.
@ -50,8 +48,7 @@ function main() {
# ******************************************************************************* # *******************************************************************************
# Install essential packages. # Install essential packages.
xbps-install -y -Su xbps gptfdisk xbps-install -y -Su xbps gptfdisk xterm
# Common part of the pre-install stage # Common part of the pre-install stage
if ! pre_install ; then if ! pre_install ; then
@ -85,10 +82,8 @@ function main() {
# waitfor a console input # waitfor a console input
read dummy_var read dummy_var
# Start void-installer # Start void-installer in the separate window
void-installer & xterm -fa monospace -fs ${XTERMFONTSIZE} -e void-installer &
# Make it foreground
fg
# Record the PID of the installer. # Record the PID of the installer.
export INSTALLER_PID=$! export INSTALLER_PID=$!