I’m quite new here, I’m not sure if this is the place to ask for help or report bug. Just tell me if I need to post this somewhere else.
I realized my silverblue host no longer updates: more specifically, it does update, but I end up booting in the same “version” over and over again (same when I try removing a package).
After updating (but before rebooting), I can see what the next “version” would be by inspecting “rpm-ostree status”, but when I boot, there is no new grub entry, and I reboot on the same system.
Here are some informations:
$ sudo rpm-ostree status
[sudo] password for slt:
State: idle
Warning: failed to finalize previous deployment
error: Bootloader write config: grub2-mkconfig: El proceso hijo terminó con el código 1
check `journalctl -b -1 -u ostree-finalize-staged.service`
AutomaticUpdates: disabled
Deployments:
● ostree://fedora:fedora/31/x86_64/silverblue
Version: 31.20191130.0 (2019-11-30T00:35:48Z)
BaseCommit: 3acfe02779b60bf385950fac7b0bcf1de58b10bedd263e39dd2d70d6448903b5
GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4
LayeredPackages: VirtualBox aircrack-ng fedora-workstation-repositories fuse-exfat gnome-tweaks java-1.8.0-openjdk ltrace nmap p7zip-gui strace tcpdump tmux vim vlc
LocalPackages: rpmfusion-free-release-31-1.noarch rpmfusion-nonfree-release-31-1.noarch
ostree://fedora:fedora/31/x86_64/silverblue
Version: 31.20191123.0 (2019-11-23T00:39:51Z)
BaseCommit: 2c0cb651d74ad99eaaeff4929dbeb707bb8fc66d5f655e1bb777b9762037cdab
GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4
LayeredPackages: VirtualBox aircrack-ng fedora-workstation-repositories fuse-exfat gnome-tweaks java-1.8.0-openjdk ltrace nmap p7zip-gui strace tcpdump tmux vim vlc
LocalPackages: rpmfusion-free-release-31-1.noarch rpmfusion-nonfree-release-31-1.noarch
and the journal extract:
$ sudo journalctl -b -1 -u ostree-finalize-staged.service
[sudo] password for slt:
-- Logs begin at Mon 2019-09-30 15:07:38 CEST, end at Fri 2019-12-06 16:43:39 CET. --
déc. 06 16:25:09 nsfw-localdomain systemd[1]: Started OSTree Finalize Staged Deployment.
déc. 06 16:29:23 nsfw-localdomain systemd[1]: Stopping OSTree Finalize Staged Deployment...
déc. 06 16:29:24 nsfw-localdomain ostree[17359]: Finalizing staged deployment
déc. 06 16:29:29 nsfw-localdomain ostree[17359]: Copying /etc changes: 11 modified, 0 removed, 49 added
déc. 06 16:29:35 nsfw-localdomain ostree[17359]: error: Bootloader write config: grub2-mkconfig: El proceso hijo terminó con el código 1
déc. 06 16:29:35 nsfw-localdomain systemd[1]: ostree-finalize-staged.service: Control process exited, code=exited, status=1/FAILURE
déc. 06 16:29:35 nsfw-localdomain systemd[1]: ostree-finalize-staged.service: Failed with result 'exit-code'.
déc. 06 16:29:35 nsfw-localdomain systemd[1]: Stopped OSTree Finalize Staged Deployment.
déc. 06 16:29:35 nsfw-localdomain systemd[1]: ostree-finalize-staged.service: Consumed 4.138s CPU time.
I used to know my way around linux and all, but I have to admit it’s no longer the case!
@dustymabe: well, it does look similar indeed There are many grub2-mkconfig related bug reports currently, and this one had not caught my eyes at first sight!
Hmm, looks like you might need to recreate your grubenv (e.g. grub2-editenv create). Not sure if there are steps you should take beforehand though. /cc @javierm
@slt sorry I was on holidays so didn’t see this thread before. Yes, @jlebon suggestion is correct. That’s the command to re-generate a grubenv file.
I wonder why the grubenv got borked though. Could you please first backup and share that file before running grub2-editenv create to understand what happened?
When i manually run “sudo ostree admin finalize-staged” after the upgrade i get a new environment to boot into. BUT i always get the grub boot menu now with the options, which should only show when a boot failed.