Update chroot_setup.sh

This commit is contained in:
Conor Budworth 2025-11-09 22:43:16 +01:00
parent a9e78b1669
commit 18e312fea8

View File

@ -4,6 +4,8 @@ source /root/install/.env
echo ">>> Configuring system" echo ">>> Configuring system"
chmod 0600 /var/lib/systemd/random-seed || true
ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime
hwclock --systohc hwclock --systohc
@ -57,7 +59,9 @@ layout=uki
EOF EOF
echo ">>> Creating initial UKI" 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" echo ">>> Installing firstboot service"
install -Dm755 /root/install/firstboot.sh /usr/local/sbin/firstboot.sh install -Dm755 /root/install/firstboot.sh /usr/local/sbin/firstboot.sh