Browse Source

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 10 years ago
parent
commit
0030df868a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      contrib/mkimage.sh

+ 3 - 3
contrib/mkimage.sh

@@ -71,18 +71,18 @@ nameserver 8.8.8.8
 nameserver 8.8.4.4
 EOF
 
-tarFile="$dir/rootfs.tar.xz"
+tarFile="$dir/rootfs.tar"
 touch "$tarFile"
 
 (
 	set -x
-	tar --numeric-owner -caf "$tarFile" -C "$rootfsDir" --transform='s,^./,,' .
+	tar --numeric-owner -cf "$tarFile" -C "$rootfsDir" --transform='s,^./,,' .
 )
 
 echo >&2 "+ cat > '$dir/Dockerfile'"
 cat > "$dir/Dockerfile" <<'EOF'
 FROM scratch
-ADD rootfs.tar.xz /
+ADD rootfs.tar /
 EOF
 
 # if our generated image has a decent shell, let's set a default command