fix ucode adding

This commit is contained in:
Tobias Powalowski 2023-09-07 11:13:10 +02:00
parent 929389435e
commit 5a31d60884
2 changed files with 4 additions and 3 deletions

View file

@ -71,7 +71,7 @@ CONFEOF
Description=Run systemd ukify
[Service]
Type=oneshot
ExecStart="/usr/lib/systemd/ukify -c /etc/ukify.conf --output ${_UEFISYS_MP}/EFI/Linux/archlinux-linux.efi"
ExecStart="/usr/lib/systemd/ukify build --config=/etc/ukify.conf --output ${_UEFISYS_MP}/EFI/Linux/archlinux-linux.efi"
CONFEOF
${_NSPAWN} systemctl enable run_ukify.path &>"${_NO_LOG}"
}

View file

@ -8,10 +8,11 @@ _uki_config() {
echo "[UKI]" > "${_UKIFY_CONFIG}"
echo "Linux=/boot/${_VMLINUZ}" >> "${_UKIFY_CONFIG}"
if [[ -n ${_UCODE} ]]; then
_UCODE="/boot/${_UCODE}"
echo "Initrd=/boot/${_UCODE} /boot/${_INITRAMFS}" >> "${_UKIFY_CONFIG}"
else
echo "Initrd=/boot/${_INITRAMFS}" >> "${_UKIFY_CONFIG}"
fi
cat << CONFEOF >> "${_UKIFY_CONFIG}"
Initrd=${_UCODE} /boot/${_INITRAMFS}
Cmdline=@/etc/kernel/cmdline
OSRelease=@/etc/os-release
Splash=/usr/share/systemd/bootctl/splash-arch.bmp