Skip to main content

max / alloy

2.0 KB · 34 lines History Blame Raw
1 # Directories in /var that packages create at install time and then rely on at
2 # runtime, declared so they exist on a machine that upgraded into this image
3 # rather than only on one installed from it.
4 #
5 # /var is per-machine on a bootc system. `bootc install` copies the image's /var
6 # into the stateroot, so a fresh install gets everything; an upgrade re-syncs
7 # /usr and leaves /var alone, so a directory that arrives in a later image never
8 # appears on a machine already running. Anything under /var that has to be there
9 # needs a tmpfiles line, and `bootc container lint` fails the build on one that
10 # does not have one (`var-tmpfiles`).
11 #
12 # This file is the part both profiles need. The client's own set is in
13 # 50-alloy-var-client.conf, which is deleted on `server` — several of its lines
14 # name users that only exist alongside the packages that create them, and
15 # systemd-tmpfiles errors at boot on a line naming a user that is not there.
16 #
17 # What is NOT here: dnf's caches, /var/log/dnf5.log, the ldconfig aux-cache and
18 # authselect's checksum. Those are the build host's leavings rather than
19 # anything a running machine needs, and the Containerfile deletes them before
20 # the lint instead of declaring them.
21 #
22 # libX11's compose cache is here rather than in the client half because it does
23 # not arrive with the session: gtk3-devel and webkit2gtk4.1-devel pull libX11 in
24 # on every GUI=tauri mint, and astra is a server that builds Tauri apps. It sat
25 # in the client file, which `server` deletes, so the first astra mint would have
26 # failed the lint at step 101 of 103. Measured by build/preflight.sh 2026-09-04,
27 # before that mint was ever attempted. Both paths are root-owned, so neither
28 # carries the user-resolution problem that put the rest of that file where it is.
29 #
30 #Type Path Mode User Group Age Argument
31 d /var/cache/libX11 0755 root root - -
32 d /var/cache/libX11/compose 0755 root root - -
33 d /var/cache/tailscale 0755 root root - -
34