From 21dc1599c0d68bd5642fbbb5488f5e35694bbd6b Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.de>
Date: Thu, 5 Feb 2026 16:09:44 +0100
Subject: [PATCH] Fix workaround for read-only / subvolumes by remounting /root
 (bsc#1252892)

---
 .../system/systemd-remount-fs.service.d/writableagain.conf    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/usr/lib/systemd/system/systemd-remount-fs.service.d/writableagain.conf b/usr/lib/systemd/system/systemd-remount-fs.service.d/writableagain.conf
index bf3aa24..910ae35 100644
--- a/usr/lib/systemd/system/systemd-remount-fs.service.d/writableagain.conf
+++ b/usr/lib/systemd/system/systemd-remount-fs.service.d/writableagain.conf
@@ -2,4 +2,6 @@
 # Make sure that at least one subvolume is mounted RW after the
 # ro-remount of /, so that the filesystem is writable again as
 # quickly as possible (boo#1156421).
-ExecStart=/bin/sh -e -c 'if mountpoint -q /boot/writable; then mount -o remount,rw /boot/writable; fi'
+# /root is very likely a subvolume of / and known to be mounted
+# this early due to x-initrd.mount set by setup-fstab-for-overlayfs.
+ExecStart=/bin/sh -e -c 'if mountpoint -q /root; then mount -o remount,rw /root; fi'
-- 
2.52.0

