[/usr/lib64/tmpfiles.d/rkt.conf:1] Unknown group 'rkt'. #1137
Comments
@mischief We moved the group generation to systemd-sysusers, right? |
@crawford yeah, sysusers. I bet the problem is that /usr modification time is based on the build time of the image, not when it was installed to the system and systemd's "needs update" condition for /etc is approximately "mtime(/etc/.stamp) < mtime(/usr)" so if a system boots and then updates to a version that was built prior to that first boot the update logic doesn't trigger. Previously this wasn't an issue because a smaller set of things hinged on that logic. We need to adjust that logic to be "mtime(/etc/.stamp) != mtime(/usr)". I considered adjusting the logic previously but probably only in the context of rollbacks where this doesn't pose much of an issue instead of the context of the ordering of first boot and build. Need to double check that this is accurate, it was a long time ago that I read that code last. |
Yeah, probably need this patch (not tested): diff --git a/src/shared/condition.c b/src/shared/condition.c
index f937858..2845a72 100644
--- a/src/shared/condition.c
+++ b/src/shared/condition.c
@@ -308,8 +308,8 @@ static int condition_test_needs_update(Condition *c) {
if (lstat("/usr/", &usr) < 0)
return true;
- return usr.st_mtim.tv_sec > other.st_mtim.tv_sec ||
- (usr.st_mtim.tv_sec == other.st_mtim.tv_sec && usr.st_mtim.tv_nsec > other.st_mtim.tv_nsec);
+ return usr.st_mtim.tv_sec != other.st_mtim.tv_sec ||
+ (usr.st_mtim.tv_sec == other.st_mtim.tv_sec && usr.st_mtim.tv_nsec != other.st_mtim.tv_nsec);
}
static int condition_test_first_boot(Condition *c) { |
coreos/systemd#34 should fix the issue @marineam is speaking of. I haven't tested yet to make sure that this actually fixes the rkt group issue. |
It does fix the issue. The group should magically appear when you update to the next Alpha.
Update
|
Rkt in CoreOS 962.0.0 seems to have some problem:
This happened after upgrading from 899.7.0.
The text was updated successfully, but these errors were encountered: