-
Notifications
You must be signed in to change notification settings - Fork 24
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
Move /var content to /usr/share/factory/var #569
Conversation
Instead of dropping `/var` content on the floor, move it into `/usr/share/factory/var`. With this change, a systemd-tmpfiles fragment like this: `C+ /var - - - - -` is sufficient to get "populate /var" automatically on initial installation and across upgrades.
Pairs with ostreedev/ostree#3103 |
LGTM |
Will this also solve the problem of rpms installing under /opt? ...he asked while making doe eyes at @cgwalters |
This will help ensure we're testing what's there before release, in particular ostreedev/ostree-rs-ext#569
This will help ensure we're testing what's there before release, in particular ostreedev/ostree-rs-ext#569 Signed-off-by: Colin Walters <walters@verbum.org>
The core issue remains that:
But yes, some will probably start working modulo those caveats. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@cgwalters are the caveats recorded/documented somewhere? |
From https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html (see ostreedev/ostree#3103):
If I understand correctly, I've found the following caveats to document: On updates (N -> N+1), the following will happen:
On rollbacks (N+1 -> N):
In general, I think we should recommend users include another unit that calls to rsync (for example) with a list of files to update in sync between updates on boot. If they want files to be removed, they will have to make another unit. I still need to verify that |
Instead of dropping
/var
content on the floor, move it into/usr/share/factory/var
.With this change, a systemd-tmpfiles fragment like this:
C+ /var - - - - -
is sufficient to get "populate /var" automatically on initial installation and across upgrades.