macros.ssuks 1.01 KB
Newer Older
1 2 3
# 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.
4 5 6 7 8
#
# Some variables can control the macros behaviour:
# KS_LEVELS true for rnd kickstarts, false for release kickstarts.
#           default is "true false"

9
%gen_ks() \
10 11 12 13 14 15 16
    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 \
17 18 19
    if [ -z "$KS_LEVELS" ]; then \
        KS_LEVELS="true false" \
    fi \
20
    for M in %{?*}; do \
21
        for B in $KS_LEVELS; do  \
22
            ssuks %{?ssu_override} model="$M" sandbox=/tmp/sandbox outputdir=%{buildroot}/%{_datadir}/kickstarts/ rnd=$B version=%{version} \
23 24 25
        done \
    done \
%{nil}