From 8f5dded6ae4c06c4616afd9136893cffa27af0eb Mon Sep 17 00:00:00 2001 From: eichehome Date: Tue, 25 Jul 2023 23:44:31 +0200 Subject: [PATCH] =?UTF-8?q?Kommandos=20zum=20Partitionieren=20hinzugef?= =?UTF-8?q?=C3=BCgt.=20Noch=20nicht=20aktiv.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.uefi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test.uefi b/test.uefi index 4a9c6f3..3838a32 100644 --- a/test.uefi +++ b/test.uefi @@ -46,6 +46,11 @@ if [[ ${PARTITIONS_PRESENT[ROOT]} -eq 1 && ${PARTITIONS_PRESENT[USR]} -eq 1 && $ elif [[ ${PARTITIONS_PRESENT[ROOT]} -eq 0 && ${PARTITIONS_PRESENT[USR]} -eq 0 && ${PARTITIONS_PRESENT[USRHASH]} -eq 0 && ${PARTITIONS_PRESENT[ESP]} -eq 0 ]]; then echo "Keine Partition ist vorhanden." echo "Partitionen werden erstellt." + echo sgdisk -og "${DRIVE}" + echo sgdisk -n 0:0:"+${ESP}" -t "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" -c 0:"EFI System Partition" "${DRIVE}" + echo sgdisk -n 0:0:"+${USR}" -t 0:8484680c-9521-48c6-9c11-b0720656f69e -c 0:"ArchOS_0.1" "${DRIVE}" + echo sgdisk -n 0:0:+512M -t 0:77ff5f63-e7b6-4633-acf4-1565b864c0e6 -c 0:"ArchOS_0.1" "${DRIVE}" + echo sgdisk -n 0:0:0 -t 0:4f68bce3-e8cd-4db1-96e7-fbcaf984b709 -c 0:"ArchOS Root" "${DRIVE}" else echo " ##################################################################################" echo " ##################################################################################" @@ -92,6 +97,11 @@ else if [[ ${confirm_recreate_partitions} == [jJ] ]]; then echo echo "Recreate Partitions" + echo sgdisk -og "${DRIVE}" + echo sgdisk -n 0:0:"+${ESP}" -t "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" -c 0:"EFI System Partition" "${DRIVE}" + echo sgdisk -n 0:0:"+${USR}" -t 0:8484680c-9521-48c6-9c11-b0720656f69e -c 0:"ArchOS_0.1" "${DRIVE}" + echo sgdisk -n 0:0:+512M -t 0:77ff5f63-e7b6-4633-acf4-1565b864c0e6 -c 0:"ArchOS_0.1" "${DRIVE}" + echo sgdisk -n 0:0:0 -t 0:4f68bce3-e8cd-4db1-96e7-fbcaf984b709 -c 0:"ArchOS Root" "${DRIVE}" else echo "Do nothing (Partitions)" fi