Thanks to Ronny Standtke <ronny.standtke@fhnw.ch> for the patch.
Closes: #877776
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
+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.