1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

View file

@ -8,7 +8,7 @@ set -e
} }
usage() { 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 exit 1
} }
@ -52,7 +52,7 @@ save() {
tar --numeric-owner -C $ROOTFS -c . | xz > rootfs.tar.xz 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 case $opt in
r) r)
REL=$OPTARG REL=$OPTARG
@ -66,6 +66,9 @@ while getopts "hr:m:sc:" opt; do
c) c)
ADDITIONALREPO=$OPTARG ADDITIONALREPO=$OPTARG
;; ;;
a)
ARCH=$OPTARG
;;
*) *)
usage usage
;; ;;