summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJonathan Bauer2014-01-14 17:07:12 +0100
committerJonathan Bauer2014-01-14 17:07:12 +0100
commitf3b6eb11d6bc121a21b66b3c5d46377c5b4eaffa (patch)
tree4cfc887a40b42b35a3f5452e3356ecf8afbc31e4 /server
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-f3b6eb11d6bc121a21b66b3c5d46377c5b4eaffa.tar.gz
tm-scripts-f3b6eb11d6bc121a21b66b3c5d46377c5b4eaffa.tar.xz
tm-scripts-f3b6eb11d6bc121a21b66b3c5d46377c5b4eaffa.zip
[packing.inc] change initramfs compression method to xz/lzma
Diffstat (limited to 'server')
-rw-r--r--server/includes/packing.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/includes/packing.inc b/server/includes/packing.inc
index 01bdff99..85d28de4 100644
--- a/server/includes/packing.inc
+++ b/server/includes/packing.inc
@@ -11,7 +11,7 @@ generate_initramfs() {
cd "$1" || perror "Cannot cd to '$1'"
rm -f -- "$3"
- find $2 | cpio --format="newc" --create | gzip -9 > "$3"
+ find $2 | cpio --format="newc" --create | xz --check=crc32 --lzma2=dict=1MiB > "$3"
local PS=(${PIPESTATUS[*]})
[ "x${PS[0]}" != "x0" ] && perror "'find $2' in '$(pwd)' failed."
[ "x${PS[1]}" != "x0" ] && perror "cpio create failed."