From 18e312fea8b1e76b1cc1832f671d6d1b961e36c3 Mon Sep 17 00:00:00 2001 From: Conor Budworth Date: Sun, 9 Nov 2025 22:43:16 +0100 Subject: [PATCH] Update chroot_setup.sh --- chroot_setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chroot_setup.sh b/chroot_setup.sh index 006ec4a..2babf4d 100644 --- a/chroot_setup.sh +++ b/chroot_setup.sh @@ -4,6 +4,8 @@ source /root/install/.env echo ">>> Configuring system" +chmod 0600 /var/lib/systemd/random-seed || true + ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime hwclock --systohc @@ -57,7 +59,9 @@ layout=uki EOF echo ">>> Creating initial UKI" -kernel-install add "$(uname -r)" /usr/lib/modules/"$(uname -r)"/vmlinuz +KERNEL_VER=$(ls /usr/lib/modules | sort -V | tail -n1) +echo ">>> Creating initial UKI for kernel $KERNEL_VER" +kernel-install add "$KERNEL_VER" "/usr/lib/modules/$KERNEL_VER/vmlinuz" echo ">>> Installing firstboot service" install -Dm755 /root/install/firstboot.sh /usr/local/sbin/firstboot.sh