summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-12-02 16:05:34 +0100
committerKarel Kočí <karel.koci@nic.cz>2019-12-02 16:05:34 +0100
commite41677fbc662f5c0dda14534b682f38f29babef3 (patch)
treec7e018e6c79aeb9e0dcb3ad751a9591bb9a4872a /templates
parent012049df080aca7d676bfddbfce98430c478cfb1 (diff)
downloadlaminar-cnf-e41677fbc662f5c0dda14534b682f38f29babef3.tar.gz
laminar-cnf-e41677fbc662f5c0dda14534b682f38f29babef3.tar.bz2
laminar-cnf-e41677fbc662f5c0dda14534b682f38f29babef3.zip
templates/alpine.run: /dev/null no longer is present in archive
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/alpine.run4
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/alpine.run b/templates/alpine.run
index b0d61fd..e362c0c 100755
--- a/templates/alpine.run
+++ b/templates/alpine.run
@@ -32,10 +32,8 @@ if [ ! -d "$ROOT" ]; then
echo_stage "Setting up new root"
wget "http://dl-cdn.alpinelinux.org/alpine/edge/releases/$ARCH/$rootfs" -O alpine.tar.gz
# TODO verify signature
- gunzip alpine.tar.gz # tar is not able to change compressed files
- tar -f alpine.tar --delete ./dev/null
mkdir "$ROOT"
- uroot tar -xf alpine.tar -C "$ROOT"
+ uroot tar -xzf alpine.tar -C "$ROOT"
chmod 755 "$ROOT" # This is intentional, tar changes access rights
MOUNT="" uchroot root <<EOF
set -e