failed to finalize previous deployment

Trying to update/rebase doesn't work and I get this output when checking rpm-ostree status
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`
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`
Output of the journalctl command:
Feb 23 14:44:43 baptop systemd[1]: Finished ostree-finalize-staged.service - OSTree Finalize Staged Deployment.
Feb 23 14:45:28 baptop systemd[1]: Stopping ostree-finalize-staged.service - OSTree Finalize Staged Deployment...
Feb 23 14:45:28 baptop ostree[14585]: Finalizing staged deployment
Feb 23 14:45:29 baptop ostree[14585]: Copying /etc changes: 48 modified, 2 removed, 129 added
Feb 23 14:45:29 baptop ostree[14585]: Copying /etc changes: 48 modified, 2 removed, 129 added
Feb 23 14:45:29 baptop ostree[14585]: Refreshing SELinux policy
Feb 23 14:45:30 baptop ostree[14585]: Refreshed SELinux policy in 909 ms
Feb 23 14:45:30 baptop ostree[14585]: Finalized deployment
Feb 23 14:45:30 baptop ostree[14585]: bootfs is sufficient for calculated new size: 239.0 MB
Feb 23 14:45:31 baptop ostree[14606]: /usr/sbin/grub2-probe: error: failed to get canonical path of `composefs'.
Feb 23 14:45:31 baptop ostree[14585]: error: Bootloader write config: grub2-mkconfig: Child process exited with code 1
Feb 23 14:45:31 baptop systemd[1]: ostree-finalize-staged.service: Control process exited, code=exited, status=1/FAILURE
Feb 23 14:45:31 baptop systemd[1]: ostree-finalize-staged.service: Failed with result 'exit-code'.
Feb 23 14:45:31 baptop systemd[1]: Stopped ostree-finalize-staged.service - OSTree Finalize Staged Deployment.
Feb 23 14:45:31 baptop systemd[1]: ostree-finalize-staged.service: Consumed 1.936s CPU time, 566M memory peak.
Feb 23 14:44:43 baptop systemd[1]: Finished ostree-finalize-staged.service - OSTree Finalize Staged Deployment.
Feb 23 14:45:28 baptop systemd[1]: Stopping ostree-finalize-staged.service - OSTree Finalize Staged Deployment...
Feb 23 14:45:28 baptop ostree[14585]: Finalizing staged deployment
Feb 23 14:45:29 baptop ostree[14585]: Copying /etc changes: 48 modified, 2 removed, 129 added
Feb 23 14:45:29 baptop ostree[14585]: Copying /etc changes: 48 modified, 2 removed, 129 added
Feb 23 14:45:29 baptop ostree[14585]: Refreshing SELinux policy
Feb 23 14:45:30 baptop ostree[14585]: Refreshed SELinux policy in 909 ms
Feb 23 14:45:30 baptop ostree[14585]: Finalized deployment
Feb 23 14:45:30 baptop ostree[14585]: bootfs is sufficient for calculated new size: 239.0 MB
Feb 23 14:45:31 baptop ostree[14606]: /usr/sbin/grub2-probe: error: failed to get canonical path of `composefs'.
Feb 23 14:45:31 baptop ostree[14585]: error: Bootloader write config: grub2-mkconfig: Child process exited with code 1
Feb 23 14:45:31 baptop systemd[1]: ostree-finalize-staged.service: Control process exited, code=exited, status=1/FAILURE
Feb 23 14:45:31 baptop systemd[1]: ostree-finalize-staged.service: Failed with result 'exit-code'.
Feb 23 14:45:31 baptop systemd[1]: Stopped ostree-finalize-staged.service - OSTree Finalize Staged Deployment.
Feb 23 14:45:31 baptop systemd[1]: ostree-finalize-staged.service: Consumed 1.936s CPU time, 566M memory peak.
ujust regenerate-grub outputs this:
/usr/sbin/grub2-probe: error: failed to get canonical path of `composefs'.
error: Recipe `regenerate-grub` failed with exit code 1
/usr/sbin/grub2-probe: error: failed to get canonical path of `composefs'.
error: Recipe `regenerate-grub` failed with exit code 1
Help would be appreciated
No description
Solution:
im dumb dumb, u have to be in the main ostree to rebase, i thought u could do it from anywhere 💀
Jump to solution
1 Reply
Solution
waw
waw2w ago
im dumb dumb, u have to be in the main ostree to rebase, i thought u could do it from anywhere 💀

Did you find this page helpful?