summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsegfault <segfault@riseup.net>2019-11-24 18:40:08 +0100
committersegfault <segfault@riseup.net>2019-12-15 22:00:30 +0100
commit7e11aa3ba152d7a50108374883094eb21c30f932 (patch)
tree09b0d5cb5777f9d44d219a599414fa8a038c2deb
parent6390c2c10e9b766d737482031e8c17febdab631f (diff)
Enable some overlayfs features (refs: #17258)feature/17258-enable-overlayfs-features+force-all-tests
The "redirect_dir", "index", and "xino" options make overlayfs act more like a standards compliant filesystem. The "metacopy" option can improve performance. For a description of these options, see the overlayfs documentation: https://www.kernel.org/doc/Documentation/filesystems/overlayfs.txt
-rw-r--r--config/chroot_local-patches/live-boot:.use-overlay-with-xino-auto-option.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/chroot_local-patches/live-boot:.use-overlay-with-xino-auto-option.patch b/config/chroot_local-patches/live-boot:.use-overlay-with-xino-auto-option.patch
new file mode 100644
index 0000000..14f7571
--- /dev/null
+++ b/config/chroot_local-patches/live-boot:.use-overlay-with-xino-auto-option.patch
@@ -0,0 +1,13 @@
+diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh
+index ee53b16..bb9fd8a 100755
+--- a/lib/live/boot/9990-misc-helpers.sh
++++ b/lib/live/boot/9990-misc-helpers.sh
+@@ -1332,7 +1332,7 @@ do_union ()
+ # + workdir and upperdir to be in separate directories
+ mkdir "${unionrw}/rw"
+ mkdir "${unionrw}/work"
+- unionmountopts="-o noatime,lowerdir=${unionro},upperdir=${unionrw}/rw,workdir=${unionrw}/work"
++ unionmountopts="-o redirect_dir=on,metacopy=on,index=on,xino=on,noatime,lowerdir=${unionro},upperdir=${unionrw}/rw,workdir=${unionrw}/work"
+ ;;
+ esac
+