bootc status unable to find grub2
- Lingua principale
- Rust
- Stelle
- 2.3k
- Fork
- 230
- Merge medio
- 3g 3h
- PR unite (30g)
- 36
Descrizione
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:
```
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 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 `
` is basically `quay.io/fedora/fedora-bootc:44` with some small additions)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci il malfunzionamento con `bootc status` sull'installazione Fedora bootc descritta, quindi confronta la ricerca di `/boot/grub2` con la voce `strace` pertinente. Esamina il percorso delle voci del bootloader di `bootc status` e conferma la correzione facendo in modo che status venga completato correttamente e riporti le voci di avvio installate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- operating-systems
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100