Add extra warning for LVM

This commit is contained in:
natemaia 2022-12-27 17:29:57 -08:00
parent 40a5a15fce
commit c1a10aefdc

View File

@ -875,8 +875,13 @@ dev_menu()
'back' "$back" || return 0
if [[ -z $WARN && $choice != 'view' ]]; then
msg "Data Warning" "$_warn"
WARN=true
if [[ -z $LVMWARN && $choice == 'lvm' ]]; then
msg "LVM Warning" "\nIMPORTANT: Choose carefully when setting up LVM, the partitions chosen will be formatted and your DATA WILL BE LOST.\n\nLogical volumes created will need to be formatted before install.\n"
LVMWARN=true
else
msg "Data Warning" "$_warn"
WARN=true
fi
fi
case "$choice" in
'view') part_show ;;