Fix read-only persistence mode with overlayfs
authorRonny Standtke <ronny.standtke@gmx.net>
Tue, 21 Nov 2017 14:27:09 +0000 (15:27 +0100)
committerRaphaël Hertzog <hertzog@debian.org>
Tue, 21 Nov 2017 14:29:43 +0000 (15:29 +0100)
Thanks to Ronny Standtke <ronny.standtke@fhnw.ch> for the patch.

Closes: #877776

components/9990-misc-helpers.sh
debian/changelog

index ee53b16..fba3d43 100755 (executable)
@@ -1615,6 +1615,13 @@ activate_custom_mounts ()
                        mkdir -p ${cow_dir}
                        chown_ref "${source}" "${cow_dir}"
                        chmod_ref "${source}" "${cow_dir}"
+                       if [ "${UNIONTYPE}" = "overlay" ]
+                       then
+                               # When we use overlay we add the "/rw" postfix to our source when using it
+                               # as upper layer. Therefore we also have to add it here when using it as
+                               # the lower layer.
+                               source="${source}/rw"
+                       fi
                        do_union ${dest} ${cow_dir} ${source} ${rootfs_dest_backing}
                fi
 
index 4c4c363..2248f3f 100644 (file)
@@ -1,3 +1,10 @@
+live-boot (1:20171121) UNRELEASED; urgency=medium
+
+  * Fix read-only persistence mode with overlayfs. Closes: #877776
+    Thanks to Ronny Standtke <ronny.standtke@fhnw.ch> for the patch.
+
+ -- Raphaël Hertzog <hertzog@debian.org>  Tue, 21 Nov 2017 15:27:37 +0100
+
 live-boot (1:20170623) unstable; urgency=medium
 
   * Do not duplicate files in /lib/live/boot/ and /bin/boot/ in the initrd.