bootupd: Adopt fails with error "removing ".btmp.fedora/mmia32.efi": No such file or directory (os error 2)"
On a X86-84 system running Fedora Silverblue 41:
$ sudo bootupctl status
Running as unit: bootupd.service
No components installed.
Detected: EFI: unknown
Boot method: EFI
$ sudo bootupctl adopt-and-update
Running as unit: bootupd.service
error: Failed adopt and update: applying filesystem changes: removing ".btmp.fedora/mmia32.efi": No such file or directory (os error 2)
$ sudo bootupctl --version
bootupctl 0.2.24
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (10 by maintainers)
Commits related to this issue
- filetree: skip the error if removing unexisting files Fixes https://github.com/coreos/bootupd/issues/762 — committed to HuijingHei/bootupd by HuijingHei 2 years ago
- filetree: skip the error if removing unexisting files Fixes https://github.com/coreos/bootupd/issues/762 — committed to HuijingHei/bootupd by HuijingHei 2 years ago
- filetree: skip the error if removing unexisting files Fixes https://github.com/coreos/bootupd/issues/762 — committed to HuijingHei/bootupd by HuijingHei 2 years ago
- filetree: skip the error if removing unexisting files Fixes https://github.com/coreos/bootupd/issues/762 — committed to HuijingHei/bootupd by HuijingHei 2 years ago
- filetree: skip the error if removing unexisting files Fixes https://github.com/coreos/bootupd/issues/762 — committed to HuijingHei/bootupd by HuijingHei 2 years ago
The new release rust-bootupd-0.2.25-1.fc41 would fix this issue.
Hello Everybody,
I have the same problem!
I will give as much information as possible.
sudo bootupctl adopt-and-update -vvvv
sudo systemctl reset-failed bootupd.service
sudo bootupctl status
sudo bootupctl validate
Information about my system:
lsblk
sudo ls -alhR /boot/efi
journalctl -b -u bootloader-update.service --no-page
rpm-ostree status
Hopefully, all the information is helpful!
https://github.com/coreos/bootupd/blob/main/src/filetree.rs#L350 looks like this one either should not fail if the file already does not exists or we should test if the file exists before calling it.
@HuijingHei
@travier
The listing of
/boot/efimight also help us:sudo ls -alhR /boot/efi