Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-33990

systemd-ukify should depend on systemd-boot-unsigned

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.5
    • systemd
    • None
    • systemd-252-34.el9
    • None
    • Moderate
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • 26
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      systemd-ukify requires /usr/lib/systemd/boot/efi/{addonx64,linuxx64}.efi.stub to work properly, e.g.

      # ukify build --cmdline 'debug' --output=./addon.efi
      Traceback (most recent call last):
        File "/usr/bin/ukify", line 1660, in <module>
          main()
        File "/usr/bin/ukify", line 1648, in main
          check_inputs(opts)
        File "/usr/bin/ukify", line 390, in check_inputs
          value.open().close()
        File "/usr/lib64/python3.9/pathlib.py", line 1252, in open
          return io.open(self, mode, buffering, encoding, errors, newline,
        File "/usr/lib64/python3.9/pathlib.py", line 1120, in _opener
          return self._accessor.open(self, flags, mode)
      FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/systemd/boot/efi/addonx64.efi.stub'
      

      /usr/lib/systemd/boot/efi/{addonx64,linuxx64}.efi.stub are now contained in 'systemd-boot-unsigned' sub-package so adding a dependency on it seems like the easiest solution.

      Going forward, it may make sense to either move /usr/lib/systemd/boot/efi/{addonx64,linuxx64}.efi.stub to the systemd-ukify package itself or create a separate sub-package. These stubs have nothing to do with 'systemd-boot'.

      FWIW, current Fedora packages seem to have the same issue.

              jamacku@redhat.com Jan Macku
              vkuznets@redhat.com Vitaly Kuznetsov
              systemd maint mailing list systemd maint mailing list
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: