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:
parent
a89d282dbb
commit
23f0c20b02
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue