Skip to content

Regression: bcvk fails systemd-boot installation: Cannot allocate memory #234

@travier

Description

@travier

Using latest bcvk built from git here and downloaded with ORAS (https://github.com/bootc-dev/bcvk/blob/main/docs/src/installation.md#development-binaries), the following commands fails:

./bcvk libvirt run --name bootc-test --detach --firmware=uefi-secure --secure-boot-keys=$PWD/secureboot/keys --label=bootc.test=1 --filesystem=btrfs --composefs-backend --bootloader=systemd localhost/uki

With:

...
Bootloader: systemd
Installing bootloader via systemd-boot
Running in a chroot, enabling --graceful.
Created "/tmp/.tmpulGeO5/EFI".
Created "/tmp/.tmpulGeO5/EFI/systemd".
Created "/tmp/.tmpulGeO5/EFI/BOOT".
Created "/tmp/.tmpulGeO5/loader".
Created "/tmp/.tmpulGeO5/loader/keys".
Created "/tmp/.tmpulGeO5/loader/entries".
Created "/tmp/.tmpulGeO5/EFI/Linux".
Failed to read "/usr/lib/systemd/boot/efi": Cannot allocate memory
error: Installing to disk: Setting up composefs boot: Installing bootloader: Failed to run command: Command {
    program: "bootctl",
    args: [
        "bootctl",
        "install",
        "--esp-path",
        "/tmp/.tmpulGeO5",
    ],
    create_pidfd: false,
}
...

With bcvk 0.10.0 from Fedora and the same container image and same command, it goes pass that step. I have not bissected the issue yet.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions