diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-10-19 09:45:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-10-19 09:45:43 +0000 |
commit | 688d54df37e4ceaec38ca2eeb501680ee26459d1 (patch) | |
tree | fc6dadec8caba48daf1a93793aac927bbff376c6 /main/util-vserver/setup-vs-template | |
parent | d451866fd59af0b3c653dd94c0ee135b1e2d9ece (diff) | |
download | aports-688d54df37e4ceaec38ca2eeb501680ee26459d1.tar.bz2 aports-688d54df37e4ceaec38ca2eeb501680ee26459d1.tar.xz |
main/util-vserver: upgrade to 0.30.216_pre2994
also add supporrt for creating 32bit guests on x86_64 hosts
Diffstat (limited to 'main/util-vserver/setup-vs-template')
-rw-r--r-- | main/util-vserver/setup-vs-template | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/util-vserver/setup-vs-template b/main/util-vserver/setup-vs-template index 8ad7f3fae8..3edffa1aaa 100644 --- a/main/util-vserver/setup-vs-template +++ b/main/util-vserver/setup-vs-template @@ -16,8 +16,9 @@ clean_exit() { outfile=template.tar.gz fakeroot= repos= -while getopts "ho:qX:" opt; do +while getopts "a:ho:qX:" opt; do case "$opt" in + a) arch_opt="--arch $OPTARG";; h) usage 0;; o) outfile="$OPTARG";; q) quiet=-q;; @@ -32,7 +33,7 @@ fi tmpdir=$(mktemp -d ${TMPDIR:-/tmp}/setup-vs-template-XXXXXX) -apk add --root "$tmpdir" --initdb --keys-dir /etc/apk/keys -U \ +apk add --root "$tmpdir" --initdb --keys-dir /etc/apk/keys -U $arch_opt \ $quiet ${repos:---repositories-file /etc/apk/repositories} \ alpine-base $@ \ || clean_exit 1 |