diff --git a/install.uefi b/install.uefi index e4ada86..1f62f16 100644 --- a/install.uefi +++ b/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