Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ks] Add hacky %gen_ks macro for easy kickstart packaging
- Loading branch information
Bernd Wachter
committed
Apr 19, 2013
1 parent
d83168e
commit aa0adee
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 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. | ||
%define 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 \ | ||
for M in %{?*}; do \ | ||
for B in true false; do \ | ||
ssuks model=$M sandbox=/tmp/sandbox outputdir=%{buildroot}/%{_datadir}/kickstarts/ rnd=$B version=%{version} \ | ||
done \ | ||
done \ | ||
%{nil} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters