From d01e5802d9f37a1018f312122f1c47a701a7f873 Mon Sep 17 00:00:00 2001 From: eichehome Date: Fri, 21 Jul 2023 14:17:42 +0200 Subject: [PATCH] =?UTF-8?q?Eine=20Abfrage=20hinzugef=C3=BCgt,=20ob=20bei?= =?UTF-8?q?=20unbekannten=20partitionen=20fortgefahren=20werden=20soll.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.uefi | 10 ++++++++++ 1 file changed, 10 insertions(+) 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