How to fix os tree?

I cant boot into the first option, as it takes me to emergency mode just to tell me that I fix it by logging in and using some commands in the terminal to read the system logs or something. I can boot into the second option just fine, but the second option isn't the automatic boot one so I have to manually pick it every time I boot
16 Replies
wolfyreload
wolfyreload8mo ago
Boot into the working deployment (Ostree:1) then run rpm-ostree cleanup -p to remove the broken deployment then you'll only have one bootable option until there is a new upgrade and then you'll auto boot into that one
Tray
TrayOP8mo ago
"Deployments unchanged."
wolfyreload
wolfyreload8mo ago
Weird, according to the docs rpm-ostree cleanup -p should remove pending deployments, which should remove the broken deployment since you in ostree:1 at the moment.
Tray
TrayOP8mo ago
i did a system upgrade i believe while in ostree1 would that have affected anything? i thought that was gonna bump it to ostree0 or something being newer than the other one but yk it didnt
wolfyreload
wolfyreload8mo ago
yeah if you do that it will probably remove the old deployment and make a new one, is ostree:0 working now after the update? what do you get if you type rpm-ostree status?
Tray
TrayOP8mo ago
you know what ur so right i forgot that im IN ostree0 now 🤦‍♂️ i did that after creating this help post i restarted like 20 min ago
wolfyreload
wolfyreload8mo ago
So ostree:0 is working now? and it autoboots into this one?
Tray
TrayOP8mo ago
thank you for the help anyways yea ostree 0 how do i remove the blank ones? the redundant ones that dont work
wolfyreload
wolfyreload8mo ago
rpm-ostree cleanup -r will remove the rollback deployments so it will nuke ostree: 1 and ostree: 2 if you have that
Tray
TrayOP8mo ago
gotcha i have ostree 0 ostree 1 ostree 0 ostree 1
Tray
TrayOP8mo ago
i assume this means i only got this one now
No description
wolfyreload
wolfyreload8mo ago
ujust configure-grub fix will remove the confusing double entry in grub
Tray
TrayOP8mo ago
ty
wolfyreload
wolfyreload8mo ago
Yup that's what you want. just be careful playing with anything in fstab until your next update is available else you won't have a rollback point if something goes wrong
Tray
TrayOP8mo ago
idk what im capable of 😈
wolfyreload
wolfyreload8mo ago
😆

Did you find this page helpful?