From 4cf628054fdb4621bf81965d63fdef2a254cfd4f Mon Sep 17 00:00:00 2001 From: eichehome Date: Wed, 19 Jul 2023 19:27:03 +0200 Subject: [PATCH 1/5] =?UTF-8?q?Kommentare=20zu=20der=20Erstellung=20der=20?= =?UTF-8?q?Partitionen=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.uefi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.uefi b/install.uefi index c46c19d..e75e913 100644 --- a/install.uefi +++ b/install.uefi @@ -78,9 +78,12 @@ USR="15G" #Discoverable Partitions Specification sgdisk -og "${DRIVE}" +# Create EFI System Partition sgdisk -n 0:0:+"${ESP}" -t 0:c12a7328-f81f-11d2-ba4b-00a0c93ec93b -c 0:"EFI System Partition" "${DRIVE}" #sgdisk -n 0:0:+512M -t 0:ef00 -c 0:ESP "${DRIVE}" +# Create usr-Partition sgdisk -n 0:0:+"${USR}" -t 0:8484680c-9521-48c6-9c11-b0720656f69e -c 0:"Usr-Partition" "${DRIVE}" +# Create Root-Partition sgdisk -n 0:0:0 -t 0:4f68bce3-e8cd-4db1-96e7-fbcaf984b709 -c 0:"System Root" "${DRIVE}" From 220f80a62f8debf232f822b78098505ba4f50879 Mon Sep 17 00:00:00 2001 From: eichehome Date: Wed, 19 Jul 2023 19:28:37 +0200 Subject: [PATCH 2/5] =?UTF-8?q?Eine=20usrhash-Partition=20hinzugef=C3=BCgt?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.uefi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.uefi b/install.uefi index e75e913..0d95ffb 100644 --- a/install.uefi +++ b/install.uefi @@ -83,13 +83,15 @@ sgdisk -n 0:0:+"${ESP}" -t 0:c12a7328-f81f-11d2-ba4b-00a0c93ec93b -c 0:"EFI Syst #sgdisk -n 0:0:+512M -t 0:ef00 -c 0:ESP "${DRIVE}" # Create usr-Partition sgdisk -n 0:0:+"${USR}" -t 0:8484680c-9521-48c6-9c11-b0720656f69e -c 0:"Usr-Partition" "${DRIVE}" +# Create usrhash-Partition +sgdisk -n 0:0:+64M -t 0: -c 0:"usrhash-Partition" "${DRIVE}" # Create Root-Partition sgdisk -n 0:0:0 -t 0:4f68bce3-e8cd-4db1-96e7-fbcaf984b709 -c 0:"System Root" "${DRIVE}" mkfs.vfat -n EFI -F 32 /dev/vda1 mkfs.ext4 -L usr /dev/vda2 -mkfs.ext4 -L root /dev/vda3 +mkfs.ext4 -L root /dev/vda4 mount /dev/vda3 /mnt mkdir -p /mnt/{boot,usr} From d53fb9bf71473fa146ec0c52cf6f5bbd9f5c2c67 Mon Sep 17 00:00:00 2001 From: eichehome Date: Wed, 19 Jul 2023 19:29:49 +0200 Subject: [PATCH 3/5] =?UTF-8?q?Eine=20Erkl=C3=A4rung=20des=20Partitionsauf?= =?UTF-8?q?baus=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.uefi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.uefi b/install.uefi index 0d95ffb..3967da8 100644 --- a/install.uefi +++ b/install.uefi @@ -77,6 +77,11 @@ USR="15G" ############################### #Discoverable Partitions Specification +# /boot /dev/vda1 +# /usr /dev/vda2 +# (usr-hash) /dev/vda3 +# /(root) /dev/vda4 +# Reset Partition Table sgdisk -og "${DRIVE}" # Create EFI System Partition sgdisk -n 0:0:+"${ESP}" -t 0:c12a7328-f81f-11d2-ba4b-00a0c93ec93b -c 0:"EFI System Partition" "${DRIVE}" From 4942f3eece7b15b3e7629151def0181c06365607 Mon Sep 17 00:00:00 2001 From: eichehome Date: Wed, 19 Jul 2023 19:30:47 +0200 Subject: [PATCH 4/5] Die Mount-Statments auf Partitionslabel umgestellt. --- install.uefi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.uefi b/install.uefi index 3967da8..92bf201 100644 --- a/install.uefi +++ b/install.uefi @@ -98,10 +98,10 @@ mkfs.vfat -n EFI -F 32 /dev/vda1 mkfs.ext4 -L usr /dev/vda2 mkfs.ext4 -L root /dev/vda4 -mount /dev/vda3 /mnt +mount /dev/disk/by-label/root /mnt mkdir -p /mnt/{boot,usr} -mount /dev/vda1 /mnt/boot -mount /dev/vda2 /mnt/usr +mount /dev/disk/by-label/EFI /mnt/boot +mount /dev/disk/by-label/usr /mnt/usr #--------------------------# From 26039f1801721812f8e1205f322a34ed231fecdb Mon Sep 17 00:00:00 2001 From: eichehome Date: Wed, 19 Jul 2023 21:05:35 +0200 Subject: [PATCH 5/5] Zeile mit dem lokalen hostnamel aus /etc/hosts entfernt, da nicht von systemd erkannt. --- install.uefi | 1 - 1 file changed, 1 deletion(-) diff --git a/install.uefi b/install.uefi index 92bf201..47c32eb 100644 --- a/install.uefi +++ b/install.uefi @@ -143,7 +143,6 @@ echo "${HOSTNAME_NEW}" > /mnt/etc/hostname cat > /mnt/etc/hosts << EOF 127.0.0.1 localhost ::1 localhost -127.0.1.1 ${HOSTNAME_NEW}.localedomain ${HOSTNAME_NEW} EOF #echo "127.0.0.1 localhost" > /etc/hosts #echo "::1 localhost" >> /etc/hosts