AlmaLinux / cloud-images

Packer templates and other tools for building AlmaLinux images for various cloud platforms.
MIT License
147 stars 46 forks source link

Clean-up the Cloud-init leftovers for 8 AMI #113

Closed LKHN closed 1 year ago

LKHN commented 1 year ago

On the second stage of the AlmaLinux OS 8 AMI building the AWS VM Import/Export creates "/etc/sudoers.d/90-cloud-init-users" for "ec2-user":

ec2-user ALL=(ALL) NOPASSWD:ALL

ec2-user ALL=(ALL) NOPASSWD:ALL

Make sure no sudoers file present from the second stage

Signed-off-by: Elkhan Mammadli elkhan.mammadli@protonmail.com