This commit is contained in:
Lukas Graz 2022-05-02 13:21:06 +02:00
parent f3ba6a1fb9
commit 1410ff67a2
2 changed files with 15 additions and 3 deletions

View File

@ -65,8 +65,20 @@ if [[ $PARTITION_STRATEGY == "Dual_Boot" || $PARTITION_STRATEGY == "Manual_Parti
echo "set up partition table on your own, good luck :)"
echo "DISK = $DISK"
echo "press any key to start"
read temp_variable
bash -i
read wait_variable
cgdisk
lsblk
echo "Which partition NUMBER is EFIBOOT (for sda4 the answer is '4')"
read efiboot_nr
echo "Which partition NUMBER is ROOT (for sda4 the answer is '4')"
read root_nr
partition2=${DISK}${efiboot_nr}
partition3=${DISK}${root_nr}
echo -ne "
partition2 = $partition2\n
partition3 = $partition3\n
press any key to continue"
read wait_variable
elif [[ $PARTITION_STRATEGY == "Auto_Partition" ]]; then
# disk prep

View File

@ -307,7 +307,7 @@ partitionstrategy () {
Dual_Boot: Manual_partition + Dualboot things \n
Manual_Partition: set up manually partition table \n
Auto_Partition: Whipe *ALL DATA* on the whole disk (all partitions) \n"
options=(Dual_Boot / Manual_Partition / Auto_Partition)
options=(Dual_Boot Manual_Partition Auto_Partition)
select_option $? 4 "${options[@]}"
partition_strategy=${options[$?]}
set_option PARTITION_STRATEGY $partition_strategy