One of our required packages (McAfee) currently does not support the standard xfs filesystem in RH8. (And no ETA of when they will)
We are building RH8 from the AWS Marketplace ami and in order to pass our corporate security requirements we need to switch the root filesystem from XFS to EXT4. (No easy way around this, our security department has invested a LOT of $$ into McAfee)
I found a tool on github called fstransform that can do the switch on offline FS’s but I can’t see how I can integrate it into the packer build. It can’t work on on the running new instance (can’t re-type root) so ideally Packer could in its transient temporary instance mount the new disk and run fstransform on it… BUT AWS Marketplace rules require root OS disks to be mounted only by instances of the same type (Ie RH8) and the Packer instance is Ubuntu.
Obviously I could do this manually after the build, but the whole idea was to automate this ami creation, without breaking the AWS Marketplace ID’s (which would break patching)