]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-generator.sh: properly escape backslash in path 302/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 2 Nov 2017 16:04:49 +0000 (17:04 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 2 Nov 2017 16:07:09 +0000 (17:07 +0100)
We need an actual bashslash in the filename on disk.

https://bugzilla.redhat.com/show_bug.cgi?id=1508794

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

index d47cf14a995fa433bce341b10ff235f7082a6a7f..fe190012b517df96035efa28760b595be3ad6ee7 100755 (executable)
@@ -70,7 +70,7 @@ ROOTFLAGS="$(getarg rootflags)"
     else
         echo "What=/dev/mapper/live-rw"
         [ -n "$ROOTFLAGS" ] && echo "Options=${ROOTFLAGS}"
-        _dev=dev-mapper-live\x2drw
+        _dev=$'dev-mapper-live\\x2drw'
     fi
 } > "$GENERATOR_DIR"/sysroot.mount