Skip to content

bootctl install rc=1 without any error  #23485

@nafets227

Description

@nafets227

systemd version the issue has been seen with

251-1

Used distribution

Arch Linux

Linux kernel version used (uname -a)

Linux vWinSrv 5.17.9-arch1-1 #1 SMP PREEMPT Wed, 18 May 2022 17:30:11 +0000 x86_64 GNU/Linux

CPU architecture issue was seen on

x86-64

Expected behaviour you didn't see

rc=0

Unexpected behaviour you saw

rc=1

Steps to reproduce the problem

setup a new VM with empty /efi dir
call bootctl install --no-variables inside a chroot

Additional program output to the terminal or log subsystem illustrating the issue

The first call ends with a bad return code, while the second once succeeds with rc=0

++ arch-chroot /tmp/inst-arch.Xd0IooHqeE bootctl install --no-variables
Created "/efi/EFI".
Created "/efi/EFI/systemd".
Created "/efi/EFI/BOOT".
Created "/efi/loader".
Created "/efi/loader/entries".
Created "/efi/EFI/Linux".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/BOOT/BOOTX64.EFI".
Random seed file /efi/loader/random-seed successfully written (512 bytes).
++ arch-chroot /tmp/inst-arch.Xd0IooHqeE bootctl install --no-variables
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/systemd/systemd-bootx64.efi".
Copied "/usr/lib/systemd/boot/efi/systemd-bootx64.efi" to "/efi/EFI/BOOT/BOOTX64.EFI".
Random seed file /efi/loader/random-seed successfully written (512 bytes).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions