diff --git a/fragments/platform/rhel10/payload/python_crypt_packages.ks b/fragments/platform/rhel10/payload/python_crypt_packages.ks new file mode 100644 index 00000000..21dd825c --- /dev/null +++ b/fragments/platform/rhel10/payload/python_crypt_packages.ks @@ -0,0 +1,3 @@ +%packages +python3 +%end diff --git a/fragments/platform/rhel8/payload/python_crypt_packages.ks b/fragments/platform/rhel8/payload/python_crypt_packages.ks new file mode 100644 index 00000000..21dd825c --- /dev/null +++ b/fragments/platform/rhel8/payload/python_crypt_packages.ks @@ -0,0 +1,3 @@ +%packages +python3 +%end diff --git a/fragments/platform/rhel9/payload/python_crypt_packages.ks b/fragments/platform/rhel9/payload/python_crypt_packages.ks new file mode 100644 index 00000000..21dd825c --- /dev/null +++ b/fragments/platform/rhel9/payload/python_crypt_packages.ks @@ -0,0 +1,3 @@ +%packages +python3 +%end diff --git a/fragments/shared/payload/python_crypt_packages.ks b/fragments/shared/payload/python_crypt_packages.ks new file mode 100644 index 00000000..71cf829f --- /dev/null +++ b/fragments/shared/payload/python_crypt_packages.ks @@ -0,0 +1,4 @@ +%packages +python3 +python3-crypt-r +%end diff --git a/rootpw-basic.ks.in b/rootpw-basic.ks.in index a7b0626f..2820e96c 100644 --- a/rootpw-basic.ks.in +++ b/rootpw-basic.ks.in @@ -18,11 +18,7 @@ rootpw qweqwe shutdown -# make sure Python 3 is available for the %post scriptlet -%packages -python3 -python3-crypt-r -%end +%ksappend payload/python_crypt_packages.ks %post --interpreter=/usr/bin/python3 diff --git a/rootpw-lock.ks.in b/rootpw-lock.ks.in index 619c5b3e..68b68a7c 100644 --- a/rootpw-lock.ks.in +++ b/rootpw-lock.ks.in @@ -23,11 +23,7 @@ rootpw --lock qweqwe shutdown -# make sure Python 3 is available for the %post scriptlet -%packages -python3 -python3-crypt-r -%end +%ksappend payload/python_crypt_packages.ks %post --interpreter=/usr/bin/python3