-
Notifications
You must be signed in to change notification settings - Fork 27
Create more directories in /var
in base image
#354
Comments
OK so the failure in tests appears to be due to:
I'm not reproducing this booting our stock image (using Notably this test is using |
Using bootc install to-disk lead to the same error, but this won't happen on anaconda
From the test result for centos-bootc on RHTAP, I can see this problem is fixed after #357 got merged. |
@shi2wei3 Are we still seeing this then? |
Upstream and downstream rhtap pipeline is broken recently, i'll report back as soon as it fixed. What I can tell is the centos-bootc github CI test result is PASS. |
@cgwalters I can confirm this issue still exists on bootc base image. CI job doesn't impact because it doesn't use bootc base image, it add |
This issue is created in related to the issue of /var/log/journal is not created on firstboot, so I leave the followup comment here, but if we found it's a separated issue, feel free to create a new issue. Recently I found the journal log issue only happen on base images (rpm-ostree compose image) without any layering modifications. |
For the journal
Right...it's because dnf writes to |
But yes we should definitely just pre-create these directories. The problem is that rpm-ostree is really too opinionated here...tempting to just add a "really mutate anything" equivalent of |
I guess we need to add
And I bet it was |
So fixing this is unfortunately annoying because rpm-ostree is extremely opinionated, so...we could do coreos/rpm-ostree#4882 or just try to wedge in a container layer here too. |
This is a sublist of packages using |
Following ostreedev/ostree@f81b9fa we now have improved semantics for including content in
/var
in the container image by default.There is still an inherent tension between this and systemd-tmpfiles.
However, we already have a few things in the image like
/var/tmp
because without it too many things fail.Let's go ahead and extend that set to at least:
/var/roothome
/var/home
/var/log/journal
The text was updated successfully, but these errors were encountered: