From 8c2723f16cb8652c72746206eea89f8bbd004159 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Mon, 12 May 2025 21:26:59 -0600 Subject: [PATCH] Fixed a regression in SELinux support by restoring the `/run` mount during wwinit. #1910 https://systemd.io/INITRD_INTERFACE/ Signed-off-by: Jonathon Anderson --- CHANGELOG.md | 1 + overlays/wwinit/rootfs/init | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba8172c2..34c23998 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed - Updated 70-persistent-net.rules.ww to use `(lower $netdev.Type)` for case-insensitive comparison of "infiniband". +- Fixed a regression in SELinux support by restoring the `/run` mount during wwinit. #1910 ### Removed diff --git a/overlays/wwinit/rootfs/init b/overlays/wwinit/rootfs/init index e189c850..f1cdaa58 100755 --- a/overlays/wwinit/rootfs/init +++ b/overlays/wwinit/rootfs/init @@ -6,6 +6,8 @@ echo "Mounting kernel file systems..." mountpoint -q /proc || (mkdir -p /proc && mount -t proc proc /proc && echo "Mounted /proc") mountpoint -q /dev || (mkdir -p /dev && mount -t devtmpfs devtmpfs /dev && echo "Mounted /dev") mountpoint -q /sys || (mkdir -p /sys && mount -t sysfs sysfs /sys && echo "Mounted /sys") +# https://systemd.io/INITRD_INTERFACE/ +mountpoint -q /run || (mkdir -p /run && mount -t tmpfs -o mode=0755,nodev,nosuid,strictatime tmpfs /run && echo "Mounted /run") echo echo "Loading /warewulf/config..." if [ -f "/warewulf/config" ]; then