Browse code

Do not compress rootfs archive in mkimage.sh.

* This wastes CPU time for compressing and decompressing.

Signed-off-by: Robin Schneider <ypid@riseup.net>

Robin Schneider authored on 2015/06/15 03:51:11
Showing 1 changed files
... ...
@@ -71,18 +71,18 @@ nameserver 8.8.8.8
71 71
 nameserver 8.8.4.4
72 72
 EOF
73 73
 
74
-tarFile="$dir/rootfs.tar.xz"
74
+tarFile="$dir/rootfs.tar"
75 75
 touch "$tarFile"
76 76
 
77 77
 (
78 78
 	set -x
79
-	tar --numeric-owner -caf "$tarFile" -C "$rootfsDir" --transform='s,^./,,' .
79
+	tar --numeric-owner -cf "$tarFile" -C "$rootfsDir" --transform='s,^./,,' .
80 80
 )
81 81
 
82 82
 echo >&2 "+ cat > '$dir/Dockerfile'"
83 83
 cat > "$dir/Dockerfile" <<'EOF'
84 84
 FROM scratch
85
-ADD rootfs.tar.xz /
85
+ADD rootfs.tar /
86 86
 EOF
87 87
 
88 88
 # if our generated image has a decent shell, let's set a default command