diff options
author | Sebastian Dziallas <sebastian@localhost.localdomain> | 2008-07-25 11:11:26 +0200 |
---|---|---|
committer | Sebastian Dziallas <sebastian@localhost.localdomain> | 2008-07-25 11:11:26 +0200 |
commit | 00b1391df5e8f7e738f08f27c3fa6268823e3274 (patch) | |
tree | bb171f2dbf5ba75e9e00b56697a5d47e30a70802 /snippets/repository-debuginfo.ks | |
parent | a86bc1466f30a4c134b4c9c56c8e599bab9cf749 (diff) | |
download | spin-kickstarts-00b1391df5e8f7e738f08f27c3fa6268823e3274.tar.gz spin-kickstarts-00b1391df5e8f7e738f08f27c3fa6268823e3274.tar.xz spin-kickstarts-00b1391df5e8f7e738f08f27c3fa6268823e3274.zip |
Add snippets and templates - Fix Education Math spin
Diffstat (limited to 'snippets/repository-debuginfo.ks')
-rw-r--r-- | snippets/repository-debuginfo.ks | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/snippets/repository-debuginfo.ks b/snippets/repository-debuginfo.ks new file mode 100644 index 0000000..cb246a6 --- /dev/null +++ b/snippets/repository-debuginfo.ks @@ -0,0 +1,25 @@ +# %post modifications to enable debuginfo repository + +awk ' +BEGIN { + debuginfo = 0 +} + /^\[.*\]/ { + if (/debuginfo/) { + debuginfo = 1 + } else { + debuginfo = 0 + } + print + next +} + /enabled=0/ && debuginfo { + print "enabled=1" + next +} +{ + print + next +}' < /etc/yum.repos.d/fedora.repo > /etc/yum.repos.d/fedora.repo.tmp +mv /etc/yum.repos.d/fedora.repo{.tmp,} + |