From 4145f1941cb0b6d8766e360caf224650323a4ea3 Mon Sep 17 00:00:00 2001 From: Daniel Schulte <trilader@gmail.com> Date: Tue, 19 Mar 2013 19:43:25 +0100 Subject: [PATCH] Added squashfs compression patch and updated README --- Installer-USB-Stick/README | 2 ++ .../uck-increase-squashfs-compression.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 Installer-USB-Stick/uck-increase-squashfs-compression.patch diff --git a/Installer-USB-Stick/README b/Installer-USB-Stick/README index eec0ba5..097a29d 100644 --- a/Installer-USB-Stick/README +++ b/Installer-USB-Stick/README @@ -4,6 +4,8 @@ UCK-SVN (getestet mit Revision 474) Plattenplatz Wie benutzt man das neue UCK custom script: +0. Im UCK Ordner mit patch -p1 <paht_to_compression_patch> die Kompression + des SquashFS Images erhöhen 1. Ein ggf. alten customize-scripts Ordner in ~/tmp löschen 2. uck-remaster <path_to_iso> <path_to_customize-lip> ausfüren 3. ??? (Warten) diff --git a/Installer-USB-Stick/uck-increase-squashfs-compression.patch b/Installer-USB-Stick/uck-increase-squashfs-compression.patch new file mode 100644 index 0000000..702c94d --- /dev/null +++ b/Installer-USB-Stick/uck-increase-squashfs-compression.patch @@ -0,0 +1,11 @@ +--- a/libraries/remaster-live-cd.sh 2013-03-19 19:27:55.711312314 +0100 ++++ b/libraries/remaster-live-cd.sh 2013-03-19 19:33:33.048317375 +0100 +@@ -514,7 +514,7 @@ + if [ `echo -e "${SQUASHFS_VERSION}\n4.2" | sort | head -n1` = "4.2" ]; then + if [ `echo -e "${GUEST_KERNEL_VERSION}\n2.6.30" | sort | head -n1` = "2.6.30" ]; then + echo "Squashfs>=4.1, guest kernel>=2.6.30: Enabling XZ compression for squashfs..." +- EXTRA_OPTS="${EXTRA_OPTS} -comp xz" ++ EXTRA_OPTS="${EXTRA_OPTS} -comp xz -Xbcj x86 -Xdict-size 25% -b 1024K" + fi + fi + -- GitLab