On October 19 I ran on rpm-ostree upgrade that seemed to have gone fine (it boots and works fine)
However, since then, no rpm-ostree upgrade
s nor install
s are “sticking”.
The installs/upgrades seem to work, but when rebooting, the Oct 19 deployment is the most recent option.
∴ sudo rpm-ostree status
State: idle
Warning: failed to finalize previous deployment
error: Bootloader write config: grub2-mkconfig: Child process exited with code 1
check `journalctl -b -1 -u ostree-finalize-staged.service`
Deployments:
● fedora:fedora/35/x86_64/kinoite
Version: 35.20211019.n.0 (2021-10-19T08:13:20Z)
BaseCommit: e0c50d2f6d7ac9b7e3eb7fd458a4cdbcf46cebe396df1c483883393b9e8aaf4f
GPGSignature: Valid signature by 787EA6AE1147EEE56C40B30CDB4639719867C58F
RemovedBasePackages: opensc 0.22.0-1.fc35
LayeredPackages: iptraf htop syncthing zsh exa compat-ffmpeg28 tilix iotop fd-find ncdu zsh-syntax-highlighting wireguard wireguard-tools ripgrep
LocalPackages: rpmfusion-free-release-35-0.2.noarch rpmfusion-nonfree-release-35-0.2.noarch
I looked into ostree-finalize-staged.service
logs and saw:
Oct 25 15:03:23 myhost ostree[10780]: Finalizing staged deployment
Oct 25 15:03:24 myhost ostree[10780]: Copying /etc changes: 22 modified, 2 removed, 140 added
Oct 25 15:03:24 myhost ostree[10780]: Copying /etc changes: 22 modified, 2 removed, 140 added
Oct 25 15:03:27 myhost ostree[10780]: error: Bootloader write config: grub2-mkconfig: Child process exited with code 1
Oct 25 15:03:27 myhost systemd[1]: ostree-finalize-staged.service: Control process exited, code=exited, status=1/FAILURE
Oct 25 15:03:27 myhost systemd[1]: ostree-finalize-staged.service: Failed with result 'exit-code'.
Running sudo grub2-mkconfig
gives:
∴ sudo grub2-mkconfig
... snip ...
### BEGIN /etc/grub.d/10_linux ###
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 3c56f789-65ff-4e3b-9073-30c126d68218
insmod part_gpt
/usr/sbin/grub2-probe: error: ../grub-core/kern/fs.c:120:unknown filesystem.
This UUID seems to be my boot partition
∴ grep 3c56 /etc/fstab
UUID=3c56f789-65ff-4e3b-9073-30c126d68218 /boot ext4 defaults 1 2
∴ sudo blkid | grep 3c56
/dev/nvme0n1p2: UUID="3c56f789-65ff-4e3b-9073-30c126d68218" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="fbf6ea7f-0465-488d-b998-f5e3fb44a732"
∴ mount | grep /dev/nvme0n1p2
/dev/nvme0n1p2 on /boot type ext4 (rw,relatime,seclabel)
I’m not sure how to proceed here… would appreciate any tips I could get.