Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootctl fails to find /buildroot/usr/lib/systemd/boot/efi #3376

Open
rustydb opened this issue Jan 17, 2025 · 1 comment
Open

bootctl fails to find /buildroot/usr/lib/systemd/boot/efi #3376

rustydb opened this issue Jan 17, 2025 · 1 comment
Labels

Comments

@rustydb
Copy link

rustydb commented Jan 17, 2025

mkosi commit the issue has been seen with

7979fb7

Used host distribution

Debian 12.8

Used target distribution

RHEL 9.5

Linux kernel version used

No response

CPU architectures issue was seen on

aarch64

Unexpected behaviour you saw

I updated mkosi 1-2 days ago and my build started failing during the bootloader setup.

If I checkout f039449, the one preceding 7eab77b, I can build just fine.

For now I'm working around this using f039449.

Do I need to do something new now to provide /usr/lib/systemd/boot/efi or is this a bug in bootloader.py?

mkosi_bootloader_build_failure.log

Used mkosi config

### IMAGE: default
# mkosi.conf
[Config]
MinimumVersion=v24.3

[Distribution]
Distribution=rhel
Release=9

[Output]
Format=disk
ImageId=rhel
ManifestFormat=json,changelog
OutputDirectory=out

[Build]
ToolsTree=default
ToolsTreePackages=
    qemu-user
    qemu-user-static

[Content]

# "hashed:" with no hash produces a blank password.
RootPassword=hashed:

# Ignore SELinux (breaks boots, at least for VMs).
KernelCommandLine=
        enforcing=0

Packages=
    kernel-core
Bootable=true
WithRecommends=0
WithDocs=0
CleanPackageMetadata=true

# mkosi.conf.d/arm64.conf
[Match]
Architecture=|arm64

[Distribution]
LocalMirror=https://preserve.eag.rdlabs.hpecorp.net/mirrors/netinst/rhel/9.5/aarch64/latest/BaseOS?ssl_verify=no

[Build]
ToolsTreeCertificates=false
Environment=
    DEBUG=1

mkosi output

See attachement; debug output too long.
@rustydb rustydb added the bug label Jan 17, 2025
@DaanDeMeyer
Copy link
Contributor

Need to install systemd-boot in the image. We were accidentally picking it up from the host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants