AlmaLinux / cloud-images

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

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

Closed LKHN closed 2 years ago

LKHN commented 2 years 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