We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 032dfa3 commit 1113767Copy full SHA for 1113767
1 file changed
os/mkosi/scripts/prune-rootfs.sh
@@ -21,6 +21,11 @@ for path in \
21
rm -rf "${ROOTFS:?}/$path"
22
done
23
24
+# mkosi's final systemd setup may recreate these only for privileged builds.
25
+# They belong to volatile runtime state and must not enter the immutable image.
26
+rm -f "$ROOTFS/var/lib/dbus/machine-id"
27
+find "$ROOTFS/var/log" -mindepth 1 -delete
28
+
29
# Static archives and libtool metadata are build inputs. All production
30
# consumers use the corresponding shared objects.
31
find "$ROOTFS/usr" -type f \( -name '*.a' -o -name '*.la' \) -delete
0 commit comments