Fix lvm creation if encryption was not choosen

This commit is contained in:
Le0xFF 2022-08-26 15:06:36 +02:00
parent a8aa59c84a
commit 9841650994

4
vli.sh
View File

@ -56,7 +56,7 @@ function kill_script {
if [[ "$encryption_yn" == "y" ]] || [[ "$encryption_yn" == "Y" ]] ; then
cryptsetup close /dev/mapper/"$encrypted_name"
fi
if [[ -f "$HOME"/chroot.sh ]] ; then
rm -f "$HOME"/chroot.sh
fi
@ -2386,7 +2386,7 @@ function lvm_creation {
if [[ "$yn" == "y" ]] || [[ "$yn" == "Y" ]] ; then
echo -e -n "\n\nVolume Group will now be created and mounted as: ${BLUE_LIGHT}/dev/mapper/$vg_name${NORMAL}\n\n"
vgcreate "$vg_name" /dev/mapper/"$encrypted_name"
vgcreate "$vg_name" "$final_drive"
echo
read -n 1 -r -p "[Press any key to continue...]" key
clear