diff --git a/SOURCES/cloud-init-centos-user.patch b/SOURCES/cloud-init-centos-user.patch new file mode 100644 index 0000000..2f8118b --- /dev/null +++ b/SOURCES/cloud-init-centos-user.patch @@ -0,0 +1,12 @@ +diff -uNrp cloud-init-19.4.orig/rhel/cloud.cfg cloud-init-19.4/rhel/cloud.cfg +--- cloud-init-19.4.orig/rhel/cloud.cfg 2020-10-13 14:40:36.353779891 +0000 ++++ cloud-init-19.4/rhel/cloud.cfg 2020-10-13 14:42:10.121982459 +0000 +@@ -54,7 +54,7 @@ cloud_final_modules: + + system_info: + default_user: +- name: cloud-user ++ name: centos + lock_passwd: true + gecos: Cloud User + groups: [adm, systemd-journal] diff --git a/SPECS/cloud-init.spec b/SPECS/cloud-init.spec index 34d4040..f8ac672 100644 --- a/SPECS/cloud-init.spec +++ b/SPECS/cloud-init.spec @@ -55,6 +55,8 @@ Patch19: ci-ec2-Do-not-log-IMDSv2-token-values-instead-use-REDAC.patch # For bz#1821999 - [RHEL7.9] Do not log IMDSv2 token values into cloud-init.log Patch20: ci-ec2-only-redact-token-request-headers-in-logs-avoid-.patch +Patch9999: cloud-init-centos-user.patch + # Deal with noarch -> arch # https://bugzilla.redhat.com/show_bug.cgi?id=1067089 Obsoletes: cloud-init < 0.7.5-3