a811ed
c01513
@@ -101,7 +101,9 @@
# 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
+ sed -i 's/name: cloud-user/name: centos/g' /etc/cloud/cloud.cfgecho -e 'cloud-user\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
We always used "centos" as cloud user for our cloud images (including but not limited to AWS/EC2) This PR fixes it through the kickstart, so at image build time, rather through patching cloud-init package itself.
Signed-off-by: Fabian Arrotin arrfab@centos.org
1 new commit added
Fixed the Stream cloud images too for centos cloud user
Pull-Request has been merged by bstinson
We always used "centos" as cloud user for our cloud images (including but not limited to AWS/EC2)
This PR fixes it through the kickstart, so at image build time, rather through patching cloud-init package itself.
Signed-off-by: Fabian Arrotin arrfab@centos.org