Hi All,
Does anyone have a solution for creating filesystems and mounting /var, /home, /tmp on Ubuntu 20.04 in AWS via Packer?
I can get the volumes to create via launch_block_device_mappings & ami_block_device_mappings. However when I go to make the filesystems and mount via my template I keep getting these messages:
==> amazon-ebs.example: Provisioning with shell script: /tmp/packer-shell4231079764
==> amazon-ebs.example: mke2fs 1.45.5 (07-Jan-2020)
==> amazon-ebs.example: The file /dev/xvdf does not exist and no size was specified.
And the build errors out.
When I don’t try to mkfs.ext4 or mount and I create an instance from the image. I can see this device have been created (/dev/xvdf)
Can this be a timing issue?
Any help would be GREATLY appreciated
Thanks
Ken