Closed PacificViking closed 11 months ago
10 minutes is a long time, and I would bet there are probably a handful of those layered packages culpable for the bulk of that time but I couldn't tell you offhand. The journal should give more insights as rpm-ostree logs all the scriptlets it runs and how long it took.
It's certainly not wrong to layer lots of packages, though you may want to look at e.g. https://github.com/containers/toolbox/ for something that meshes better with the Silverblue model, esp. for development tools.
Another approach is container layering of the OS image. See https://fedoraproject.org/wiki/Changes/OstreeNativeContainer and https://github.com/coreos/layering-examples for more info. The Sericea images are being published at https://quay.io/repository/fedora/fedora-sericea?tab=tags.
Thanks for the pointer to the logs! (I wasn't able to find them before and there didn't seem to be a benchmark/blame for it). I was trying to use gdb on a program using Vulkan, and that just didn't seem to work in toolbox (or podman in general). The last recommendation looks impressive and I'll definitely check it out.
Apparently it was the proprietary Nvidia drivers (akmod-nvidia) that was taking over a minute (and a couple of its dependencies taking tens of seconds), for anybody who's been facing the same problems. Apparently it was a me-problem due to my choice of packages.
Thank you!
Host system details
Expected vs actual behavior
(the writing OStree command also takes a long time)
Expected:
Steps to reproduce it
I have installed many packages whenever required, running rpm-ostree install countless times. I understand that all post scripts have to be run when installing a new package. However, it takes around 10 minutes to install a single package I need, excluding reboot, which seems to be abnormal.
My research only yields complaints of low download speeds, which have not troubled me, rather than this issue. [https://docs.fedoraproject.org/en-US/iot/add-layered/](Fedora documentation) suggests that I have installed packages separately instead of in a single command that installs many packages, but there seems to be no other sources that say this, nor any tools that reinstall all my packages in the same "image".
Would you like to work on the issue?
I'd love to help but I probably don't have the relevant expertise.