From d72c169323784d1251916f05d10ff7ac6e1de9e8 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 24 Sep 2025 18:52:06 +0200 Subject: [PATCH] minimal: ensure /var/mnt is available in the container itself There is currently on `/var/mnt` in the container image so we ship it with a dangling symlink `/mnt -> var/mnt`. This is fine when the image gets booted because there is a tmpfile.d snippet [0] that ensures this dir is created. But in bootc-image-builder [1] we want to use the container image to create ISOs directly from the bootc iamge. For that having a valid symlink would make our life easier so this commit adds a `mkir var/mnt` to the minimal/finalize/01-var.sh [0] lib/tmpfiles.d/rpm-ostree-0-integration.conf [1] https://github.com/osbuild/bootc-image-builder/pull/1053 --- minimal/finalize.d/01-var.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/minimal/finalize.d/01-var.sh b/minimal/finalize.d/01-var.sh index 35a8af1..a27a315 100755 --- a/minimal/finalize.d/01-var.sh +++ b/minimal/finalize.d/01-var.sh @@ -5,3 +5,4 @@ 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 +mkdir -p var/mnt