Update chroot_setup.sh
This commit is contained in:
parent
a9e78b1669
commit
18e312fea8
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user