]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dmsquash-live): restore compatibility with earlier releases
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Fri, 24 Feb 2023 01:57:19 +0000 (01:57 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Tue, 28 Feb 2023 07:34:40 +0000 (08:34 +0100)
Follow-up to 40dd5c90e0efcb9ebaa9abb42a38c7316e9706bd .

modules.d/90dmsquash-live/dmsquash-live-root.sh

index 62d1b5e7cd200ea3479533c4ee49b97d6c58b675..a98e258c26a4cc7d1ef9d6612d2d6a97419bba1f 100755 (executable)
@@ -403,6 +403,10 @@ fi
 
 ROOTFLAGS="$(getarg rootflags)"
 
+if [ "$overlayfs" = required ]; then
+    echo "rd.live.overlay.overlayfs=1" > /etc/cmdline.d/dmsquash-need-overlay.conf
+fi
+
 if [ -n "$overlayfs" ]; then
     if [ -n "$FSIMG" ]; then
         mkdir -m 0755 -p /run/rootfsbase