1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-13 20:34:22 +00:00
fedora-kickstarts/snippets/repository-debuginfo.ks

26 lines
373 B
Plaintext
Raw Normal View History

# %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,}