fix: bad hardcoded disk

This commit is contained in:
AngeD 2023-03-14 22:17:30 +01:00
parent 76de231f73
commit ed50d9f04e
3 changed files with 5 additions and 4 deletions

View File

@ -59,14 +59,17 @@ bootctl install
root="$(findmnt -nr -o source /)"
cryptdev="$(cryptsetup status "$root" | grep device | awk '{print $2}' || true)"
if [ -n "$cryptdev" ]; then
uuid="$(blkid | grep /dev/nvme0n1p2 | awk '{print $2}')"
uuid="$(blkid | grep "$cryptdev" | awk '{print $2}')"
options="cryptdevice=$uuid:$(basename "$root") "
fi
options="${options}root=$root"
for f in /boot/loader/entries/*.conf; do
echo "options $options rw" >> "$f"
cat << EOF >> "$f"
initrd /$cpu-ucode.img
options $options rw
EOF
done
echo -e "${BOLD}${GREEN}DONE. You can install a desktop environment \

View File

@ -1,4 +1,3 @@
title Arch Linux (fallback)
linux /vmlinuz-linux
initrd /initramfs-linux-fallback.img
initrd /$cpu-ucode.img

View File

@ -1,4 +1,3 @@
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
initrd /$cpu-ucode.img