Code added for selecting a drive. Still need to actually format it, so nothing really happens to it yet.

This commit is contained in:
Storm Dragon 2024-05-15 03:20:44 -04:00
parent 096e540392
commit a7d5c3ab8c

View File

@ -114,6 +114,8 @@ fi
answer="$(yesno "Have you created your own disk layout and mounted it at /mnt?")"
if [[ $answer -eq 1 ]]; then
msgbox "Stormux can format a drive for you. Keep in mind that all data on the selected drive will be lost, including any other operating system that may be installed. To cancel, press control+c."
mapfile -t driveList < <(lsblk -l -d -o 'PATH,SiZE' | tail -n +2 | tr -s '[:space:]' | tr '[:space:]' $'\n')
drive=$(menulist "Select a drive for the installation." "${driveList[@]}")
fi
language=$(menulist "Select the System Language" \