bump: 202510

This commit is contained in:
ange 2025-10-03 10:10:06 +00:00
parent fa579eba0b
commit b0add9b2cd
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
20 changed files with 75 additions and 98 deletions

View file

@ -1,8 +1,7 @@
#!/bin/bash
#shellcheck disable=SC2154
root="$(findmnt -n -osource /)"
boot="$(lsblk -ls -oname /dev/disk/by-partlabel/boot | tail -n1)"
esp="$(lsblk -ls -opath /dev/disk/by-partlabel/esp | tail -n1)"
cryptdev="$(cryptsetup status "$root" | awk '/device/ {print $2}')"
if [ -n "$cryptdev" ]; then
@ -15,8 +14,8 @@ options="${options}root=$root rw"
sbctl create-keys
sbctl enroll-keys
for l in arch{,-lts-fallback}; do
for l in arch-linux{,-lts-fallback}; do
efibootmgr --create --unicode --label "$l" \
--disk "$boot" --part 1 --loader "\\EFI\\Linux\\arch-linux$l.efi"
--disk "$esp" --part 1 --loader "\\EFI\\Linux\\$l.efi"
done
echo "$options" > /etc/cmdline.d/root.conf