Code added for selecting a drive. Still need to actually format it, so nothing really happens to it yet.
This commit is contained in:
parent
096e540392
commit
a7d5c3ab8c
@ -114,6 +114,8 @@ fi
|
|||||||
answer="$(yesno "Have you created your own disk layout and mounted it at /mnt?")"
|
answer="$(yesno "Have you created your own disk layout and mounted it at /mnt?")"
|
||||||
if [[ $answer -eq 1 ]]; then
|
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."
|
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
|
fi
|
||||||
|
|
||||||
language=$(menulist "Select the System Language" \
|
language=$(menulist "Select the System Language" \
|
||||||
|
Loading…
Reference in New Issue
Block a user