Add option for architecture to mkimage-alpine.sh

Signed-off-by: Robert Schneider <mail@shakeme.info>
This commit is contained in:
Robert Schneider 2017-06-15 15:30:08 +02:00
parent a89d282dbb
commit 23f0c20b02
1 changed files with 5 additions and 2 deletions

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
;;