diff options
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,} + |