Package Details: dracut-ukify 10-1

Git Clone URL: https://aur.archlinux.org/dracut-ukify.git (read-only, click to copy)
Package Base: dracut-ukify
Description: Integration layer for dracut and systemd's ukify tool for Arch Linux
Upstream URL: https://aur.archlinux.org/packages/dracut-ukify
Licenses: MIT
Conflicts: dracut-hook-uefi, dracut-uefi-hook
Provides: dracut-hook
Submitter: Prototik
Maintainer: Prototik
Last Packager: Prototik
Votes: 12
Popularity: 1.16
First Submitted: 2023-02-20 21:54 (UTC)
Last Updated: 2025-01-31 12:58 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

Prototik commented on 2023-07-28 10:36 (UTC)

@jonas-w I don't see a reason why then default_kernel_package is used if systemd-boot is not installed.

Anyway, I added warning for such case in the 6-2

jonas-w commented on 2023-07-27 19:56 (UTC)

@Prototik

Could you add a check to the set-default, so it doesn't show an error for people not using systemd-boot? Thanks.

-    if [[ "$pkgbase" == "$default_kernel_package" && "$variant" == "default" ]]; then
+    if [[ "$pkgbase" == "$default_kernel_package" && "$variant" == "default" && $(bootctl is-installed --quiet) ]]; then

jonas-w commented on 2023-07-27 19:30 (UTC)

Thanks, @BotH!

BotH commented on 2023-07-27 17:27 (UTC) (edited on 2023-07-27 17:31 (UTC) by BotH)

@Shished

--- dracut-ukify       2023-07-27 20:24:07.571779869 +0300
+++ /usr/bin/dracut-ukify       2023-07-27 20:24:46.065818807 +0300
@@ -218,12 +218,10 @@
     ukify_args+=(--uname "$version")
     ukify_args+=(--os-release "@$os_release")
     ukify_args+=(--output "$image")
-    ukify_args+=(--linux "$vmlinuz")
-    ukify_args+=(--initrd "$initrd")

     echo "==> Ukify image $kernel ($version_name)"

-    /usr/lib/systemd/ukify build "${ukify_args[@]}"
+    /usr/lib/systemd/ukify "$vmlinuz" "$initrd" "${ukify_args[@]}"

     # Remove temporary files
     rm "$initrd"

Shished commented on 2023-07-27 17:15 (UTC)

After updating to 6-1 it fails to execute the ukify commands

ukify: error: unrecognized arguments: --linux /usr/lib/modules/6.4.6-zen1-1-zen/vmlinuz --initrd /tmp/tmp.HUGrFK1HHj

Shished commented on 2023-07-09 14:32 (UTC)

Can you add an option to use xbootldr partition instead for esp for installation? If it is mounted, its path can be shown with bootctl -x command.

myles commented on 2023-06-18 00:23 (UTC) (edited on 2023-06-18 00:24 (UTC) by myles)

I had to do mkdir /efi/EFI/Linux

BotH commented on 2023-05-02 18:46 (UTC) (edited on 2023-05-02 18:47 (UTC) by BotH)

# Mark image as default if needed
if [[ "$pkgbase" == "$default_kernel_package" && "$variant" == "default" ]]; then
  echo "===> Mark linux image $kernel ($version) as default"
  bootctl set-default "$(basename "$image")" || {
    echo "==> Unable to mark linux image $kernel ($version) as default due to error" >&2
  }
fi

jonas-w commented on 2023-05-02 14:15 (UTC) (edited on 2023-05-02 14:15 (UTC) by jonas-w)

@Prototik Thanks for the implementation, seems to work!

One thing, bootctl set-default does not work, when someone doesn't use systemd-boot. This currently prints an error message when generating the UKI. That's why I removed it in my patch. But I don't know if there is a good non hacky way to set it automatically (if the path is dynamic).

Prototik commented on 2023-05-02 12:09 (UTC)

@jonas-w latest update adds option to customize UKI image location, now you can use this package without custom patches to store UKI for UEFI default location, can you try it and give some feedback if you wish?