Since you are running expansion of the fs at provisioning you should
probably just switch to lunch_block_device_mappings.

On 22 August 2017 at 10:08, ME2Digital <[email protected]> wrote:

> Hi all.
>
> I have the same problem with packer 1.0.4
>
> I use the following json
>
> ###
>     "ami_block_device_mappings": [
>     {
>       "delete_on_termination": false,
>       "device_name": "/dev/xvda",
>       "volume_size": "25",
>       "volume_type": "gp2"
>     }
>     ],
> ##
>
> Full json: https://gist.github.com/git001/be7f0293bc16aac3a80801da2ffef1ac
>
> with this provision.sh https://gist.github.com/git001/
> ae972d1884fd365f9ebbfc323c114476
>
> I have tried several variants of "device_name"
>
> "device_name": "/dev/xvda",
> "device_name": "/dev/sda",
> "device_name": "xvda",
>
> None of them increase the size of the atomic root device.
>
> Please can someone shade some light on this, thanks.
>
> You can find the output of a packer run here https://gist.github.com/
> git001/a0e95d80763ffbec58aa9b4898b5cfe0
>
> thanks for help.
>
> Regards
> Aleks
>
> Am Donnerstag, 17. August 2017 23:49:06 UTC+2 schrieb
> [email protected]:
>>
>> Hi,
>>
>> Really sorry to be asking this because I can see there are previous
>> threads, e.g. "Configuring size of root volume on EC2" but they actually
>> don't provide a clear answer and neither do the docs.
>>
>> I'm building an AMI using the amazon-ebs builder. The reference AMI is a
>> Debian stretch image with an 8GB root volume. The source images use
>> /dev/xvda1 as the root partition.
>>
>
> [snipp]
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/07ffb9d6-9e86-4d4a-9e25-3dfe57eaf6b2%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/07ffb9d6-9e86-4d4a-9e25-3dfe57eaf6b2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt8mdsqv379i%2BuhKzVHHuUSD16O1FQP-fco0ziLqKKTnpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to