From 9f1b0cf0f6457f5d8dbd18c589276bd79c435c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Tue, 30 Apr 2024 18:09:00 +0200 Subject: [PATCH] tmp on tpmfs ready in C10S --- common-el9.yaml | 11 +++++++++++ common.yaml | 10 ---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/common-el9.yaml b/common-el9.yaml index b1c538e5..1d5d475b 100644 --- a/common-el9.yaml +++ b/common-el9.yaml @@ -4,3 +4,14 @@ packages: # Gluster - Used for Openshift e2e gluster testcases # Reverts https://gitlab.cee.redhat.com/coreos/redhat-coreos/merge_requests/367 and add it for all arches - glusterfs-fuse + +postprocess: + - | + #!/usr/bin/env bash + set -xeuo pipefail + # Enable tmp-on-tmpfs by default because we don't want to have things leak + # across reboots, it increases alignment with FCOS, and also fixes the + # Live ISO. First, verify that RHEL is still disabling. + grep -q '# RHEL-only: Disable /tmp on tmpfs' /usr/lib/systemd/system/basic.target + echo '# RHCOS-only: we follow the Fedora/upstream default' >> /usr/lib/systemd/system/basic.target + echo 'Wants=tmp.mount' >> /usr/lib/systemd/system/basic.target diff --git a/common.yaml b/common.yaml index d412f997..7a051a18 100644 --- a/common.yaml +++ b/common.yaml @@ -131,16 +131,6 @@ postprocess: # FIXME: Why is this only broken here? NM isn't removing the link? sed -i '/etc.resolv/d' /usr/lib/tmpfiles.d/etc.conf - - | - #!/usr/bin/env bash - set -xeuo pipefail - # Enable tmp-on-tmpfs by default because we don't want to have things leak - # across reboots, it increases alignment with FCOS, and also fixes the - # Live ISO. First, verify that RHEL is still disabling. - grep -q '# RHEL-only: Disable /tmp on tmpfs' /usr/lib/systemd/system/basic.target - echo '# RHCOS-only: we follow the Fedora/upstream default' >> /usr/lib/systemd/system/basic.target - echo 'Wants=tmp.mount' >> /usr/lib/systemd/system/basic.target - - | #!/usr/bin/env bash set -xeo pipefail