From dd59e3fe2b79b92a52296e26474c14c4f149d420 Mon Sep 17 00:00:00 2001 From: Radek Vykydal Date: Fri, 14 Jun 2024 19:27:44 +0200 Subject: [PATCH] packages --- fragments/platform/rhel10/payload/python_crypt_packages.ks | 3 +++ fragments/platform/rhel8/payload/python_crypt_packages.ks | 3 +++ fragments/platform/rhel9/payload/python_crypt_packages.ks | 3 +++ fragments/shared/payload/python_crypt_packages.ks | 4 ++++ rootpw-basic.ks.in | 6 +----- rootpw-lock.ks.in | 6 +----- 6 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 fragments/platform/rhel10/payload/python_crypt_packages.ks create mode 100644 fragments/platform/rhel8/payload/python_crypt_packages.ks create mode 100644 fragments/platform/rhel9/payload/python_crypt_packages.ks create mode 100644 fragments/shared/payload/python_crypt_packages.ks 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