-
Notifications
You must be signed in to change notification settings - Fork 195
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
Question: modification time for /usr and /etc #1415
Comments
Yeah, |
To rephrase, this is |
Thanks for the response =D. For this part ( I was reading https://github.com/systemd/systemd/blob/master/src/shared/condition.c#L440-L447
|
You're right. OK if you don't mind let's refile this against ostree and discuss details there? I think Endless did some work here in the past...ah yep I found this endlessm/ostree@9ef61fd |
Sure :D.
\o/ |
Close this in favor of ostreedev/ostree#1628 |
Hi,
It seems like for /usr on Atomic host, the modification time is canonicalized to epoch (1970), and this makes /usr always older than /etc.
However, to have system-sysusers to trigger automatically during boot time, /usr needs to be newer than /etc due to
ConditionNeedsUpdate=/etc
in the service file:Reading a bit from systemd code base, it seems like ConditionNeedsUpdate needs /usr to be strictly newer (i.e only > and not >=). See code and documentation. So I think canonicalize
/etc
to 1970 unfortunately would not be an option.Any suggestions for changing modification time of /usr to be newer than /etc/ for
systemd-sysusers
to trigger? Or, we can have a conditional during rebase/deploy transactions that manually callssystemd-sysusers
command if that also works... Thanks for your time =D.NOTE: Related to #1376
The text was updated successfully, but these errors were encountered: