mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
parent
fd6663d2f3
commit
36acfe505b
1 changed files with 0 additions and 34 deletions
|
|
@ -61,42 +61,8 @@ function confirmation(){
|
|||
"${LVROOTNAME}" uses ${LVROOTSIZE} of the LVM volume group.
|
||||
Are you sure to install? [Y/N]
|
||||
HEREDOC
|
||||
read -r YESNO
|
||||
if [ "${YESNO}" != "Y" ] && [ "${YESNO}" != "y" ] ; then
|
||||
cat <<- HEREDOC
|
||||
|
||||
...Installation process terminated..
|
||||
HEREDOC
|
||||
return 1 # with error status
|
||||
fi # if YES
|
||||
|
||||
# For sure ask to erase.
|
||||
if [ "${ERASEALL}" -ne 0 ] ; then
|
||||
echo "Are you sure you want to erase entire \"${DEV}\"? [Y/N]"
|
||||
read -r YESNO
|
||||
if [ "${YESNO}" != "Y" ] && [ "${YESNO}" != "y" ] ; then
|
||||
cat <<-HEREDOC
|
||||
...Check your config.sh. The variable ERASEALL is ${ERASEALL}.
|
||||
|
||||
...Installation process terminated..
|
||||
HEREDOC
|
||||
return 1 # with error status
|
||||
fi # if YES
|
||||
fi # if erase all
|
||||
|
||||
# For sure ask to overwrite.
|
||||
if [ "${OVERWRITEINSTALL}" -ne 0 ] ; then
|
||||
echo "Are you sure you want to overwrite \"${LVROOTNAME}\" in \"${VGNAME}\"? [Y/N]"
|
||||
read -r YESNO
|
||||
if [ "${YESNO}" != "Y" ] && [ "${YESNO}" != "y" ] ; then
|
||||
cat <<-HEREDOC
|
||||
...Check your config.sh. The variable OVERWRITEINSTALL is ${OVERWRITEINSTALL}.
|
||||
|
||||
...Installation process terminated..
|
||||
HEREDOC
|
||||
return 1 # with error status
|
||||
fi # if YES
|
||||
fi # if overwrite
|
||||
|
||||
# ----- Set Passphrase -----
|
||||
# Input passphrase
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue