support minor
This commit is contained in:
parent
8ac9f54a49
commit
7adcb5abf0
@ -84,3 +84,10 @@ The below uses EPEL instead if you do not wish to use SIG/Core.
|
|||||||
--description="./" \
|
--description="./" \
|
||||||
--target-dir /builddir/lmc
|
--target-dir /builddir/lmc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On the other hand, you can run the live-build.sh script after setting up your
|
||||||
|
mock environment.
|
||||||
|
|
||||||
|
```
|
||||||
|
% bash live-build.sh --live-image XFCE --output-dir /builddir/xfce
|
||||||
|
```
|
||||||
|
@ -16,13 +16,14 @@ usage: $SCRNAME [OPTIONS]
|
|||||||
Options:
|
Options:
|
||||||
-o, --output-dir DIR
|
-o, --output-dir DIR
|
||||||
-l, --live-image NAME
|
-l, --live-image NAME
|
||||||
|
-m, --minor NUM
|
||||||
-p, --peridot ID # optional. will use peridot repos.
|
-p, --peridot ID # optional. will use peridot repos.
|
||||||
-d, --debug # optional
|
-d, --debug # optional
|
||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
OPTS=$(getopt -a -n live-build -o l:,o:,p:,d,h \
|
OPTS=$(getopt -a -n live-build -o l:,o:,p:,m:,d,h \
|
||||||
-l live-image:,output-dir:,peridot:,debug,help -- "$@")
|
-l live-image:,output-dir:,peridot:,minor:,debug,help -- "$@")
|
||||||
|
|
||||||
function is_in_path() {
|
function is_in_path() {
|
||||||
builtin type -P "${1}"
|
builtin type -P "${1}"
|
||||||
@ -38,6 +39,7 @@ while :; do
|
|||||||
-l | --live-image) LIVE="$2" ; shift 2 ;;
|
-l | --live-image) LIVE="$2" ; shift 2 ;;
|
||||||
-o | --output-dir) OUTPUTDIR="$2" ; shift 2 ;;
|
-o | --output-dir) OUTPUTDIR="$2" ; shift 2 ;;
|
||||||
-p | --peridot) PERIDOTID="$2" ; shift 2 ;;
|
-p | --peridot) PERIDOTID="$2" ; shift 2 ;;
|
||||||
|
-m | --minor) MINOR="$2" ; shift 2 ;;
|
||||||
-d | --debug) DEBUG="--debug" ; shift ;;
|
-d | --debug) DEBUG="--debug" ; shift ;;
|
||||||
-h | --help) usage ;;
|
-h | --help) usage ;;
|
||||||
--) shift ; break ;;
|
--) shift ; break ;;
|
||||||
@ -91,6 +93,11 @@ function main() {
|
|||||||
switch_repo_to_peridot "${PERIDOTID}"
|
switch_repo_to_peridot "${PERIDOTID}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$MINOR" ]; then
|
||||||
|
sed -i "s/Rocky-9-/Rocky-9-$MINOR-/g" components/live/*.xml
|
||||||
|
sed -i "s/Rocky-9-/Rocky-9.$MINOR-/g" configs/rocky-live-*.xml
|
||||||
|
fi
|
||||||
|
|
||||||
kiwi-ng $DEBUG --type="iso" --profile="$LIVE-Live" --color-output system build --description="$SCRDIR" --target-dir "$OUTPUTDIR"
|
kiwi-ng $DEBUG --type="iso" --profile="$LIVE-Live" --color-output system build --description="$SCRDIR" --target-dir "$OUTPUTDIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user