[debian-edu-commits] debian-edu/ 01/01: add forgotten file share/ltsp/plugins/ltsp-build-client/Debian-custom/080-eatmydata.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Sun Apr 5 16:15:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

schweer-guest pushed a commit to branch ltsp-related
in repository debian-edu-config.

commit ed42d0620dd8b16534bf009e0c781aea73408e0b
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Sun Apr 5 18:13:56 2015 +0200

    add forgotten file share/ltsp/plugins/ltsp-build-client/Debian-custom/080-eatmydata.
---
 .../ltsp-build-client/Debian-custom/080-eatmydata  | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/share/ltsp/plugins/ltsp-build-client/Debian-custom/080-eatmydata b/share/ltsp/plugins/ltsp-build-client/Debian-custom/080-eatmydata
new file mode 100644
index 0000000..2f23655
--- /dev/null
+++ b/share/ltsp/plugins/ltsp-build-client/Debian-custom/080-eatmydata
@@ -0,0 +1,22 @@
+case "$MODE" in
+    commandline)
+        add_option "eatmydata" "`eval_gettext "use eatmydata to speed up build times, at risk of data not getting written to disk"`" "advanced" "true"
+        ;;
+    configure)
+        if [ -n "$option_eatmydata_value" ]; then
+            # load libeatmydata
+            libeatmydata=libeatmydata.so
+            if [ -n "$LD_PRELOAD" ]; then
+                export LD_PRELOAD="$libeatmydata $LD_PRELOAD"
+            else
+                export LD_PRELOAD="$libeatmydata"
+            fi
+            # install eatmydata package early during debootstrap
+            if [ -z "$INCLUDE" ]; then
+                INCLUDE="eatmydata"
+            else
+                INCLUDE="$INCLUDE,eatmydata"
+            fi 
+        fi
+        ;;
+esac

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list