Eine Abfrage hinzugefügt, ob bei unbekannten partitionen fortgefahren werden soll.
This commit is contained in:
parent
9f7ecfd415
commit
d01e5802d9
1 changed files with 10 additions and 0 deletions
10
install.uefi
10
install.uefi
|
@ -148,6 +148,16 @@ if [[ $NOCASEMATCH_UNSET ]]; then
|
|||
shopt -u nocasematch
|
||||
fi
|
||||
|
||||
if [[ "${UNKNOWN_PARTITIONS}" > "0" ]]; then
|
||||
if [[ "${UNKNOWN_PARTITIONS}" > "1" ]]; then
|
||||
read -r -p "Mehrere Partitionen unbekannt. Trotzdem fortfahren? (j/N): " confirm
|
||||
[[ "${confirm}" == [jJ] ]] || echo "Abbrechen" && exit 0
|
||||
else
|
||||
read -r -p "Eine Partition unbekannt. Trotzdem fortfahren? (j/N): " confirm
|
||||
[[ "${confirm}" == [jJ] ]] || echo "Abbrechen" && exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
mkfs.vfat -n EFI -F 32 /dev/vda1
|
||||
mkfs.ext4 -L usr /dev/vda2
|
||||
mkfs.ext4 -L root /dev/vda4
|
||||
|
|
Loading…
Reference in a new issue