-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug?: Changes made under etc/ are not applied with rpm-ostree update #28
Comments
Answer on our Discord: Referenced article: https://blog.verbum.org/2014/01/24/why-ostree-requires-usretc/ We should probably change the default Containerfile to copy files to /usr/etc, but I'll check from the others first. |
I don't know if my problem is related to this one but when I add for example virt-manager in the build script, the "libvirt" group does not merge in /usr/lib/group whereas if I install virt-manager as a layer packages, the group appears in this file. Edit : The same goes for the qemu user. |
I think this is a different issue, I don't think this issue is affects RPMs. I've installed virt-manager in my own image and it works, no libvirt groups or qemu users, but no issues either. Is this something you except to be there ootb? |
Yes virt-manager works but only with root privileges. Normally with layered packages, just copy the line containing the "libvirt" group from /usr/lib/group to /etc/group and add the user in this group to be able to use virt-manager without root, the users "gluster " "qemu" "saslauth" are created automatically in /etc/passwd. But when the packages are installed with the script, the "libvirt" group does not exist in /usr/lib/group and the "gluster" "qemu" "saslauth" users are not created. |
Thanks! I just did some simple tests with the file Test casesInstall from scratchAfter changing the Containerfile in my source, I rebased the new image on a freshly staged VM. ✔️ Files affected by Add some lines to
|
Thank's for the extensive testing @tepene !
I'd assume the command just looks at the direct difference in the files in the case auto-merging is not possible. You'd probably do a manual merge then, deciding if the updates from the image are something you want to add to your own /etc/justfile |
one possible solution I found is This might be useful if you want to "reset" your system back to the original state. |
discussed at length in #28 also including tons of comments about the issue
* fix: prevent /etc/ merge issues discussed at length in #28 also including tons of comments about the issue * fix: change references of /etc/ to /usr/etc
#43 merged, it's done. |
Removing leftovers from the old /etc/ paths that were used before issue blue-build#28 was solved.
Removing leftovers from the old /etc/ paths that were used before issue #28 was solved.
As per comment in `Containerfile`: ``` # Warning: If you want to place anything in "/etc" of the final image, you MUST # place them in "./usr/etc" in your repo, so that they're written to "/usr/etc" # on the final system. That is the proper directory for "system" configuration # templates on immutable Fedora distros, whereas the normal "/etc" is ONLY meant # for manual overrides and editing by the machine's admin AFTER installation! # See issue #28 (blue-build/legacy-template#28). ```
I'm not sure if it's a bug, a feature, or if it's just my lack of understanding. My custom image https://github.com/tepene/ublue-bayou is based on this startingpoint. I'm getting along quite well ;) but now I'm struggling with updates.
According to https://github.com/coreos/rpm-ostree/blob/main/docs/container.md#installing-config-files
But that's not what is happening. For Example: I modified the
etc/yafti.yml
, rebuilt the image, uploaded it to my local registry and ranrpm-ostree update
on my test machine. The new update gets applied and i reboot withsystemctl reboot
.After the reboot I check the content of the
/etc/yafti.yml
on my test machine and it still has the "old" content. Not the "new" as I would have expected.Am I missing something crucial. Is
etc/
only applied during a fresh installation and not during updates, or is there a magic command which I am missing? Any help is greatly appreciated.The text was updated successfully, but these errors were encountered: