Add option for architecture to mkimage-alpine.sh

Signed-off-by: Robert Schneider <mail@shakeme.info>
Upstream-commit: 23f0c20b021849283fb422fab735d893c1946f46
Component: engine
This commit is contained in:
Robert Schneider
2017-06-15 15:52:25 +02:00
parent 6cc2ed537e
commit 01e1289926
+5 -2
View File
@@ -8,7 +8,7 @@ set -e
}
usage() {
printf >&2 '%s: [-r release] [-m mirror] [-s] [-c additional repository]\n' "$0"
printf >&2 '%s: [-r release] [-m mirror] [-s] [-c additional repository] [-a arch]\n' "$0"
exit 1
}
@@ -52,7 +52,7 @@ save() {
tar --numeric-owner -C $ROOTFS -c . | xz > rootfs.tar.xz
}
while getopts "hr:m:sc:" opt; do
while getopts "hr:m:sc:a:" opt; do
case $opt in
r)
REL=$OPTARG
@@ -66,6 +66,9 @@ while getopts "hr:m:sc:" opt; do
c)
ADDITIONALREPO=$OPTARG
;;
a)
ARCH=$OPTARG
;;
*)
usage
;;