Skip to content

Commit

Permalink
[ssuks] Alow selecting rnd or release for kickstart macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Wachter committed Nov 7, 2013
1 parent 4f8d7f8 commit a14084d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion macros.ssuks
@@ -1,6 +1,11 @@
# copy all the relevant files for kickstart generation both from system and
# newly installed into sandbox for ssuks; then create rnd and release kickstarts
# for all devices listed.
#
# Some variables can control the macros behaviour:
# KS_LEVELS true for rnd kickstarts, false for release kickstarts.
# default is "true false"

%gen_ks() \
mkdir -p /tmp/sandbox/%{_datadir} \
[ -d %{_datadir}/ssu ] && cp -Rf %{_datadir}/ssu /tmp/sandbox/%{_datadir}/ \
Expand All @@ -9,8 +14,11 @@
rm -f %{buildroot}/%{_datadir}/ssu/board-mappings.ini \
mkdir -p %{buildroot}/%{_datadir}/kickstarts \
sleep 1 \
if [ -z "$KS_LEVELS" ]; then \
KS_LEVELS="true false" \
fi \
for M in %{?*}; do \
for B in true false; do \
for B in $KS_LEVELS; do \
ssuks %{?ssu_override} model="$M" sandbox=/tmp/sandbox outputdir=%{buildroot}/%{_datadir}/kickstarts/ rnd=$B version=%{version} \
done \
done \
Expand Down

0 comments on commit a14084d

Please sign in to comment.