Added overwrite install

This commit is contained in:
Suikan 2021-07-02 14:20:16 +09:00
parent 5cbe95252c
commit 791ffa6112
3 changed files with 58 additions and 20 deletions

View file

@ -5,12 +5,25 @@
function confirmation(){
# Consistency check for the OVERWRITEINSTALL and ERASEALL
if [ ${ERASEALL} -eq 1 -a ${OVERWRITEINSTALL} -eq 1 ] ; then
cat <<- HEREDOC 1>&2
***** ERROR : Confliction between ERASEALL and OVERWRITEINATALL *****
...ERASEALL = ${ERASEALL}
...OVERWRITEINSTALL = ${OVERWRITEINSTALL}
...Check configuration in config.txt
...Installation process terminated..
HEREDOC
fi
# Sanity check for volume group name
if echo ${VGNAME} | grep "-" -i > /dev/null ; then # "-" is found in the volume group name.
cat <<- HEREDOC 1>&2
***** ERROR : VGNAME is "${VGNAME}" *****
..."-" is not allowed in the volume name.
...Check passphrase and config.txt
...Check configuration in config.txt
...Installation process terminated..
HEREDOC
@ -22,7 +35,7 @@ function confirmation(){
cat <<- HEREDOC 1>&2
***** ERROR : LVROOTNAME is "${LVROOTNAME}" *****
..."-" is not allowed in the volume name.
...Check passphrase and config.txt
...Check configuration in config.txt
...Installation process terminated..
HEREDOC
@ -34,7 +47,7 @@ function confirmation(){
cat <<- HEREDOC 1>&2
***** ERROR : LVSWAPNAME is "${LVSWAPNAME}" *****
..."-" is not allowed in the volume name.
...Check passphrase and config.txt
...Check configuration in config.txt
...Installation process terminated..
HEREDOC