Unverified Commit 9e81c883 authored by Neil Hanlon's avatar Neil Hanlon
Browse files

add architecture support to script

parent 83fbeb8d
#!/bin/bash -x
version=${VERSION:-"8"}
#mirror=${MIRROR:-http://192.168.20.160}
mirror=${MIRROR:-https://dl.rockylinux.org/stg}
type="${TYPE:-Base}"
output_type=tar
output_file="Rocky-${version}-Container-${type}.tar.xz"
#output_type=gpt_xfs
#output_file="Rocky-${version}-GenericCloud.raw"
case $type in
Base)
......@@ -21,8 +15,8 @@ case $type in
;;
esac
command mkosi -d rocky -r ${version} -m ${mirror} -t ${output_type} -o ${output_file} \
mkosi -d rocky -r ${version} -m ${mirror} -t ${output_type} -o ${output_file} \
--architecture $(uname -m) \
--compress xz \
--package="$(echo $packages | tr ' ' ',')" \
--base-packages 0 \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment