debian-bootc-base-images/minimal/finalize.d/01-var.sh
Colin Walters 82a4e874a4 finalize.d: Ensure var/tmp in container root
There's a crazy history around this; what we really want is
to have this reliably generated by tmpfiles.d, the handling
for which I want to move to bootc. For now let's wedge this
into finalize.d alongside the few others here.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-03-03 09:31:22 -05:00

7 lines
232 B
Bash
Executable file

#!/bin/bash
# https://gitlab.com/fedora/bootc/base-images/-/issues/28
set -xeuo pipefail
ln -s ../run var/run
# https://gitlab.com/fedora/bootc/tracker/-/issues/58
mkdir -p var/lib/rpm-state
test -d var/tmp || mkdir -m 1777 var/tmp