diff --git a/CentOS-8-EC2.ks b/CentOS-8-EC2.ks index 796c74b..2415d71 100644 --- a/CentOS-8-EC2.ks +++ b/CentOS-8-EC2.ks @@ -101,7 +101,9 @@ EOL # make sure firstboot doesn't start echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot -echo -e 'cloud-user\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers +# centos cloud user +echo -e 'centos\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers +sed -i 's/name: cloud-user/name: centos/g' /etc/cloud/cloud.cfg dnf clean all diff --git a/CentOS-8-GenericCloud.ks b/CentOS-8-GenericCloud.ks index 13df30b..f6f8845 100644 --- a/CentOS-8-GenericCloud.ks +++ b/CentOS-8-GenericCloud.ks @@ -101,7 +101,9 @@ EOL # make sure firstboot doesn't start echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot -echo -e 'cloud-user\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers +# centos cloud user +echo -e 'centos\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers +sed -i 's/name: cloud-user/name: centos/g' /etc/cloud/cloud.cfg dnf clean all