-
Notifications
You must be signed in to change notification settings - Fork 198
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
override replace with systemd - missing unit files #1340
Comments
In general there's just files from the newly installed rpms in /usr/lib/systemd/system/, everything else is gone. |
Hmm, yeah |
No worries, I hadn't started looking into it in earnest yet. |
cgwalters
added a commit
to cgwalters/rpm-ostree
that referenced
this issue
Apr 20, 2018
It's very normal for base packages to own directories with dependent packages installing files there. Doing an rm-rf for directories was just wrong. Concretely this fixes an `override replace ./systemd-*.rpm`. librpm is also pretty conservative here (for good reason) and just ignores `ENOTEMPTY`, so let's match that. I opted to split things up so we remove not-directories in a first pass, then remove all directories we can in the second. This should maximize our chances of removing what we can in a scenario where e.g. two co-dependent packages install files to a directory one of them owns. Closes: coreos#1340
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was found when trying to test bug1568594
f28AH:
ostree-2018.3-2.fc28.x86_64
,rpm-ostree-2018.4-1.fc28.x86_64
override replacing systemd seems to yield a broken system with missing systemd unit files.
Here are some steps to repro:
and before reboot we see:
after reboot we see:
The text was updated successfully, but these errors were encountered: