Also create parents when creating union/linkfiles source directories.
authorTails developers <amnesia@boum.org>
Thu, 22 Mar 2012 18:44:24 +0000 (19:44 +0100)
committerDaniel Baumann <daniel@debian.org>
Thu, 5 Apr 2012 05:50:33 +0000 (07:50 +0200)
Otherwise the it breaks with "source=a/b" if "a" doesn't exist etc.

scripts/live-helpers

index 0ab36b9..13a8cec 100644 (file)
@@ -1436,7 +1436,7 @@ activate_custom_mounts ()
                        then
                                # unions and don't need to be bootstrapped
                                # linkfiles dirs can't be bootstrapped in a sensible way
-                               mkdir "${source}"
+                               mkdir -p "${source}"
                                chown --reference "${dest}" "${source}"
                                chmod --reference "${dest}" "${source}"
                        else