1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-21 09:01:34 -05:00

autodetect partions (#13)

This commit is contained in:
calvinreu 2022-07-19 11:58:57 +02:00 committed by tommytran732
parent b036b47fc9
commit 7305ac3232
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -68,8 +68,9 @@ parted -s "$DISK" \
set 1 esp on \
mkpart cryptroot 101MiB 100% \
ESP="/dev/disk/by-partlabel/ESP"
cryptroot="/dev/disk/by-partlabel/cryptroot"
sleep 0.1
ESP="/dev/$(lsblk $DISK -o NAME,PARTLABEL | grep ESP| cut -d " " -f1 | cut -c7-)"
cryptroot="/dev/$(lsblk $DISK -o NAME,PARTLABEL | grep cryptroot | cut -d " " -f1 | cut -c7-)"
# Informing the Kernel of the changes.
echo "Informing the Kernel about the disk changes."