Blame 2233-dmsquash-live-restore-compatibility.patch

dc707d
From 0e780720efe6488c4e07af39926575ee12f40339 Mon Sep 17 00:00:00 2001
dc707d
From: Laszlo Gombos <laszlo.gombos@gmail.com>
dc707d
Date: Fri, 24 Feb 2023 01:57:19 +0000
dc707d
Subject: [PATCH] fix(dmsquash-live): restore compatibility with earlier
dc707d
 releases
dc707d
dc707d
Follow-up to 40dd5c90e0efcb9ebaa9abb42a38c7316e9706bd .
dc707d
---
dc707d
 modules.d/90dmsquash-live/dmsquash-live-root.sh | 4 ++++
dc707d
 1 file changed, 4 insertions(+)
dc707d
dc707d
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
dc707d
index 62d1b5e7c..a98e258c2 100755
dc707d
--- a/modules.d/90dmsquash-live/dmsquash-live-root.sh
dc707d
+++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh
dc707d
@@ -403,6 +403,10 @@ fi
dc707d
 
dc707d
 ROOTFLAGS="$(getarg rootflags)"
dc707d
 
dc707d
+if [ "$overlayfs" = required ]; then
dc707d
+    echo "rd.live.overlay.overlayfs=1" > /etc/cmdline.d/dmsquash-need-overlay.conf
dc707d
+fi
dc707d
+
dc707d
 if [ -n "$overlayfs" ]; then
dc707d
     if [ -n "$FSIMG" ]; then
dc707d
         mkdir -m 0755 -p /run/rootfsbase