Package Details: dracut-ukify 10-2

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: 0.27
First Submitted: 2023-02-20 21:54 (UTC)
Last Updated: 2025-06-01 21:02 (UTC)

Latest Comments

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

jonas-w commented on 2023-07-28 10:46 (UTC)

@Prototik thanks for the quick fix, and sorry I thought the default_kernel_package was for the ukify_install_path, but now I see that I've used it wrong.

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).