From 295493e65ebc3c5f8a4f7c5c402d693fbd8a93ca Mon Sep 17 00:00:00 2001 From: Timothée Ravier Date: Mar 19 2025 19:45:45 +0000 Subject: common: Add common top level directories Add some common top level directories that users can not easily add anymore now that we are using composefs. This adds `/nix` and `/snap`. Another option would be to use the transient-root support in ostree, but that option is not yet configurable via a kernel command line argument. See: https://gitlab.com/fedora/bootc/tracker/-/issues/26 See: https://github.com/ublue-os/main/issues/711 See: https://bootc-dev.github.io/bootc/filesystem.html#enabling-transient-root See: https://github.com/projectatomic/rpm-ostree/issues/233 --- diff --git a/common.yaml b/common.yaml index 779d2d4..b336334 100644 --- a/common.yaml +++ b/common.yaml @@ -25,6 +25,8 @@ include: - kernel-install.yaml # Enable composefs - composefs.yaml + # Add some top level directories + - top-level-dirs.yaml arch-include: x86_64: diff --git a/top-level-dirs.yaml b/top-level-dirs.yaml new file mode 100644 index 0000000..0e9e079 --- /dev/null +++ b/top-level-dirs.yaml @@ -0,0 +1,9 @@ +# Add some common top level directories that folks can not easily add anymore +# now that we are using composefs + +postprocess: + - | + #!/bin/bash + set -xeuo pipefail + + install -d -m 0755 /nix /snap