Skip to content

bootc status unable to find grub2 #2203

@coders-lair

Description

@coders-lair

On a fresh local bare-metal installation of fedora-bootc (with some small additions), bootc status fails with the following error message:

$ sudo bootc status
error: Status: Getting composefs deployment status: Getting composefs deployment status: Listing bootloader entries: Opening grub dir: No such file or directory (os error 2)

Running sudo strace -D -Z -tt -f -o /tmp/trace bootc status produces the following relevant output:

<REMOVED OTHER CHILD PROCESSES FOR BREVITY>
2098  15:29:21.082053 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2120, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
2098  15:29:21.082286 statx(AT_FDCWD, "/sys/dev/block/259:0/start", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff1c7698f0) = -1 ENOENT (No such file or directory)
2098  15:29:21.082299 statx(AT_FDCWD, "/sys/dev/block/259:0/partition", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff1c7698f0) = -1 ENOENT (No such file or directory)
2098  15:29:21.082309 statx(AT_FDCWD, "/sys/dev/block/252:0/start", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff1c7692f0) = -1 ENOENT (No such file or directory)
2098  15:29:21.082318 statx(AT_FDCWD, "/sys/dev/block/252:0/partition", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7fff1c7692f0) = -1 ENOENT (No such file or directory)
2098  15:29:21.082837 lseek(16, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
2098  15:29:21.083099 lseek(17, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
2098  15:29:21.083275 openat2(15, "grub2", {flags=O_RDONLY|O_CLOEXEC|O_PATH|O_DIRECTORY, resolve=RESOLVE_NO_MAGICLINKS|RESOLVE_BENEATH}, 24) = -1 ENOENT (No such file or directory)
2098  15:29:21.084327 +++ exited with 1 +++

Note: /boot/grub2 actually exists on the system, as seen here:

$ sudo ls -al /boot
total 24
drwxr-xr-x.  1 root root  352 May 17 15:08 .
drwxr-xr-x. 13 root root  358 May 17 15:07 ..
drwxr-xr-x.  1 root root   26 May 17 15:08 bootc_composefs-05bef4590b7a8837d745beea0b55840c48af296fbb5f3784fc1a6914d5fdb5716e43479a1c4fd033b7f7ca5c6e4095ae1b925b026c3528cb30c9638932836582
-rw-r--r--.  1 root root 1962 May 17 15:08 bootupd-state.json
drwxr-xr-x.  1 root root    0 May 17 15:08 efi
drwx------.  1 root root   54 May 17 15:08 grub2
drwxr-xr-x.  1 root root   14 May 17 15:08 loader

The system was provisioned via sudo podman run --rm --privileged --pid=host --ipc=host -v /var/lib/containers:/var/lib/containers -v /dev:/dev --security-opt label=type:unconfined_t <IMAGE> bootc install to-disk --filesystem btrfs --block-setup tpm2-luks --skip-fetch-check --composefs-backend --wipe /dev/nvme0n1 from a CoreOS live USB stick (where <IMAGE> is basically quay.io/fedora/fedora-bootc:44 with some small additions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions