From 6e3718cb66be28c6ea30e3bd2a33fc502d01ce85 Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Fri, 28 Nov 2025 14:05:35 +1300 Subject: [PATCH] OCPBUGS-62790: Use separate fs for ostree checkout on live ISO Installations using ABI/assisted with 16GiB of RAM on the bootstrap node were failing with "no space left on device" during bootstrapping. The live ISO environment uses a tmpfs mounted at /var that is sized at 50% of available RAM. On systems with 16GiB of RAM, this provides only 8GiB of tmpfs space. At the beginning of the bootstrap process, node-image-pull.sh creates an ostree checkout underneath /var/ostree-container. When this is added to the regular disk space usage of the later parts of the bootstrap, the peak tmpfs usage hits around 9.4GiB. This fix creates a separate 4GiB tmpfs for /var/ostree-container, so that it is not subject to the limits on the size of /var. --- .../files/etc/systemd/system/node-image-pull.service | 3 ++- .../etc/systemd/system/var-ostree\\x2dcontainer.mount" | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 "data/data/bootstrap/files/etc/systemd/system/var-ostree\\x2dcontainer.mount" diff --git a/data/data/bootstrap/files/etc/systemd/system/node-image-pull.service b/data/data/bootstrap/files/etc/systemd/system/node-image-pull.service index 8ac36d75b8..4c5e69333d 100644 --- a/data/data/bootstrap/files/etc/systemd/system/node-image-pull.service +++ b/data/data/bootstrap/files/etc/systemd/system/node-image-pull.service @@ -1,7 +1,8 @@ [Unit] Description=Node Image Pull +Wants=var-ostree\x2dcontainer.mount Requires=network.target NetworkManager.service -After=network.target +After=network.target var-ostree\x2dcontainer.mount [Service] Type=oneshot diff --git "a/data/data/bootstrap/files/etc/systemd/system/var-ostree\\x2dcontainer.mount" "b/data/data/bootstrap/files/etc/systemd/system/var-ostree\\x2dcontainer.mount" new file mode 100644 index 0000000000..674eb2ba76 --- /dev/null +++ "b/data/data/bootstrap/files/etc/systemd/system/var-ostree\\x2dcontainer.mount" @@ -0,0 +1,10 @@ +[Unit] +Requires=run-ephemeral.mount +After=run-ephemeral.mount +ConditionPathExists=/run/ostree-live + +[Mount] +What=tmpfs +Where=/var/ostree-container +Type=tmpfs +Options=size=4G