Remove EFI Features on no EFI computer
This commit is contained in:
parent
dd20f1fda1
commit
207ad1e72c
1 changed files with 28 additions and 23 deletions
51
archfi
51
archfi
|
@ -960,30 +960,35 @@ archinstallbootloader(){
|
||||||
"${options[@]}" \
|
"${options[@]}" \
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
options=()
|
if [ "$eficomputer" == "1" ]; then
|
||||||
if [ "$efimode" = "1" ]; then
|
options=()
|
||||||
options+=("EFI" "")
|
if [ "$efimode" = "1" ]; then
|
||||||
options+=("BIOS" "")
|
options+=("EFI" "")
|
||||||
options+=("BIOS+EFI" "")
|
options+=("BIOS" "")
|
||||||
elif [ "$efimode" = "2" ]; then
|
options+=("BIOS+EFI" "")
|
||||||
options+=("BIOS+EFI" "")
|
elif [ "$efimode" = "2" ]; then
|
||||||
options+=("BIOS" "")
|
options+=("BIOS+EFI" "")
|
||||||
options+=("EFI" "")
|
options+=("BIOS" "")
|
||||||
|
options+=("EFI" "")
|
||||||
|
else
|
||||||
|
options+=("BIOS" "")
|
||||||
|
options+=("EFI" "")
|
||||||
|
options+=("BIOS+EFI" "")
|
||||||
|
fi
|
||||||
|
sel=$(whiptail --backtitle "$apptitle" --title "${txtinstall//%1/bootloader}" --menu "" --cancel-button "Back" 0 0 0 \
|
||||||
|
"${options[@]}" \
|
||||||
|
3>&1 1>&2 2>&3)
|
||||||
|
if [ "$?" = "0" ]; then
|
||||||
|
clear
|
||||||
|
case $sel in
|
||||||
|
"BIOS") archchroot installbootloader $device;;
|
||||||
|
"EFI") archchroot installbootloaderefi $device;;
|
||||||
|
"BIOS+EFI") archchroot installbootloaderefiusb $device;;
|
||||||
|
esac
|
||||||
|
pressanykey
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
options+=("BIOS" "")
|
archchroot installbootloader $device;;
|
||||||
options+=("EFI" "")
|
|
||||||
options+=("BIOS+EFI" "")
|
|
||||||
fi
|
|
||||||
sel=$(whiptail --backtitle "$apptitle" --title "${txtinstall//%1/bootloader}" --menu "" --cancel-button "Back" 0 0 0 \
|
|
||||||
"${options[@]}" \
|
|
||||||
3>&1 1>&2 2>&3)
|
|
||||||
if [ "$?" = "0" ]; then
|
|
||||||
clear
|
|
||||||
case $sel in
|
|
||||||
"BIOS") archchroot installbootloader $device;;
|
|
||||||
"EFI") archchroot installbootloaderefi $device;;
|
|
||||||
"BIOS+EFI") archchroot installbootloaderefiusb $device;;
|
|
||||||
esac
|
|
||||||
pressanykey
|
pressanykey
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue