Die Großbuchstaben der UUIDs der Partitionen in Kleinbuchstaben umgewandelt, um sie als '/dev/disk/by-partuuid/' verwenden zu können.

This commit is contained in:
eichehome 2023-07-21 14:38:51 +02:00
parent ca123b85b8
commit d06489110b

View file

@ -159,9 +159,15 @@ if [[ "${UNKNOWN_PARTITIONS}" > "0" ]]; then
fi fi
fi fi
mkfs.vfat -n EFI -F 32 /dev/vda1 # Großbuchstaben in UUIDs zu kleinbuchstaben umwandeln
mkfs.ext4 -L usr /dev/vda2 UUID_ESP="${UUID_ESP@L}"
mkfs.ext4 -L root /dev/vda4 UUID_ROOT="${UUID_ROOT@L}"
UUID_USR="${UUID_USR@L}"
UUID_USRHASH="${UUID_USRHASH@L}"
mkfs.vfat -n EFI -F 32 "/dev/disk/by-partuuid/${UUID_ESP}"
mkfs.ext4 -L usr "/dev/disk/by-partuuid/${UUID_USR}"
mkfs.ext4 -L root "/dev/disk/by-partuuid/${UUID_ROOT}"
mount /dev/disk/by-label/root /mnt mount /dev/disk/by-label/root /mnt
mkdir -p /mnt/{boot,usr} mkdir -p /mnt/{boot,usr}