Skip to content

Commit

Permalink
Merge pull request #1200 from rvykydal/update-anaconda-modules-for-ce…
Browse files Browse the repository at this point in the history
…ntos

Update anaconda-modules for centos (gh#1177)
  • Loading branch information
rvykydal authored May 28, 2024
2 parents 25882b9 + 3903859 commit c9cbd83
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions anaconda-modules.ks.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ grep "org.fedoraproject.Anaconda.Modules" | cut -d"'" -f2 \
| sort > /tmp/generated.out

# Generate the expected output.
# rhel8 and rhel9 don't have Runtime module
if [ "${platform}" == "rhel8" ] || [ "${platform}" == "rhel9" ]; then
cat > /tmp/expected.out << EOF
org.fedoraproject.Anaconda.Modules.Localization
Expand All @@ -31,6 +32,21 @@ org.fedoraproject.Anaconda.Modules.Subscription
org.fedoraproject.Anaconda.Modules.Timezone
org.fedoraproject.Anaconda.Modules.Users
EOF
# centos has Subscription module forbidden in its conf profile
elif [ "${platform:0:4}" == "rhel" ] && [ "@KSTEST_OS_NAME@" == "centos" ]; then
cat > /tmp/expected.out << EOF
org.fedoraproject.Anaconda.Modules.Localization
org.fedoraproject.Anaconda.Modules.Network
org.fedoraproject.Anaconda.Modules.Payloads
org.fedoraproject.Anaconda.Modules.Runtime
org.fedoraproject.Anaconda.Modules.Security
org.fedoraproject.Anaconda.Modules.Services
org.fedoraproject.Anaconda.Modules.Storage
org.fedoraproject.Anaconda.Modules.Timezone
org.fedoraproject.Anaconda.Modules.Users
EOF
# fedora and rhel10 activate Subscription module
# On fedora the module is allowed to fail in conf (fails on rhsm not found).
else
cat > /tmp/expected.out << EOF
org.fedoraproject.Anaconda.Modules.Localization
Expand Down

0 comments on commit c9cbd83

Please sign in to comment.