-
Notifications
You must be signed in to change notification settings - Fork 3
/
macros.ssuks
25 lines (24 loc) · 1.01 KB
/
macros.ssuks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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}/ \
rm -f /tmp/sandbox/%{_datadir}/ssu/board-mappings.ini \
cp -R %{buildroot}/%{_datadir}/ssu /tmp/sandbox/%{_datadir}/ \
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 $KS_LEVELS; do \
ssuks %{?ssu_override} model="$M" sandbox=/tmp/sandbox outputdir=%{buildroot}/%{_datadir}/kickstarts/ rnd=$B version=%{version} \
done \
done \
%{nil}