HI, everybody.
I'm trying to use the base Amazon Linux AMI (ami-05355a6c) as my foundation AMI with Aminator and I've quickly run into a problem. Before trying to install my RPM, Aminator tries to do a 'yum clean metadata', which breaks with an error that I have no yum repos enabled. I dug into it and it looks like /etc/init.d/cloud-init runs on boot and uses templates to write out /etc/yum.repos.d/amzn-main.repo (among others). Unfortunately, Aminator is only mounting the filesystem, not running init, so the file doesn't exist when Aminator runs the clean.
The best solution that I've come up with so far is to somehow get /etc/yum.repos.d/amzn-main.repo into the provision_config_files list so that the one from my Aminator box gets dropped in and then cleaned up later. Is there a way to do that aside from editing the system-wide aminator/plugins/distro/default_conf/aminator.plugins.distro.redhat.yml?
Another way to try to get around the issue could also be to run /etc/init.d/cloud-init after the chroot but before the yum call. I didn't see any way to hook in at that point but maybe there is one?
Is there another way to work around this that I'm missing?
Thanks for the help, guys.
Rob