Auto updates

Hey, it's my understanding that ublue images come with auto updating configured out of the box. I can see that my GH actions have successfully gone off, there is a new latest image, but I haven't gotten any updates pending. rpm-ostree status does show that the automatic update timer was last run 11m ago.
automaticUpdates: stage; rpm-ostreed-automatic.timer: last run 11min ago
automaticUpdates: stage; rpm-ostreed-automatic.timer: last run 11min ago
My recipie https://github.com/matt-savvy/bluebuild/blob/main/recipes/recipe.yml Am I just looking in the wrong place? Thanks
GitHub
bluebuild/recipes/recipe.yml at main · matt-savvy/bluebuild
Contribute to matt-savvy/bluebuild development by creating an account on GitHub.
14 Replies
Luke Skywunker
Luke Skywunker2mo ago
Updates only get applied after you reboot. Did you do that?
matt_savvy
matt_savvyOP2mo ago
Yup, I've rebooted Is there somewhere I would be able to see any updates that are "on deck" to be applied at the next reboot? I've used bluebuild switch , could that be part of it? I've just gone ahead and updated with the current latest in my registry with bootc switch, I'll check in some time after the next build runs and see if there is anything to see
Luke Skywunker
Luke Skywunker2mo ago
bootc status and rpm-ostree status should provide that information
poolhouse
poolhouse2mo ago
piggybacking here - is there a ujust alternative to the above?
Luke Skywunker
Luke Skywunker2mo ago
You can create some of your own systemd units to do this with timers. I can link you guys an example of how I handle it
matt_savvy
matt_savvyOP2mo ago
I think the automatic updates are working. Today when I ran rpm-ostree status, I had a new version staged
Luke Skywunker
Luke Skywunker2mo ago
Cool!
MartinSnow✨
MartinSnow✨2mo ago
I should check it as well in 10 days when I back home. Every time I had to run it manually despite the stage mood. Would be great to have a notification if there are new updates and if these have been successfully installed (maybe it should already happen but I rarely see these notifications). Also I have very instable internet connection and usually an update needs me to re run the upgrade command 3 4 times because unfortunately when the connection goes down the command stops working... At least it doesn't re-start from zero
matt_savvy
matt_savvyOP5w ago
Taking a look at this again. Looking at your linked updates.yml, you have 4 items listed here, but in the source dir, I only see files for bootc-update
files/bootc-update/
├── bootc-fetch-apply-updates.service
└── bootc-fetch-apply-updates.timer
files/bootc-update/
├── bootc-fetch-apply-updates.service
└── bootc-fetch-apply-updates.timer
I'm guessing it's because your base already includes what it needs for these ones :
- ublue-update.timer
- uupd.timer
- rpm-ostreed-automatic.timer
- ublue-update.timer
- uupd.timer
- rpm-ostreed-automatic.timer
Is that right? The automatic updates WERE working fine for me and then stopped at some point recently. I think it was right around when bluefin (which I'm using as my base) changed silverblue 42 from being its latest to its GTS
Luke Skywunker
Yeah I disabled the ublue updater cause it was causing me issues. I just use the bootc one to update masked makes it so that it's disabled no matter who has it enabled
matt_savvy
matt_savvyOP5w ago
Hmm, okay, so as long as I copy that bootc-update dir from your files, I should be good to go, right? As in, the rest of this updates.yml will work, there's not any other service/timer files from your config I'd need to track down
Luke Skywunker
It's only for bootc, but yeah
matt_savvy
matt_savvyOP5w ago
Cool, I'll give that a shot

Did you find this page helpful?