Skip to content

[AMZ2] Data device disappears during AMI baking  #259

@mbloch1986

Description

@mbloch1986

Describe the bug
When baking an AMI with Amazon Linux 2 the data device disappears during the AMI baking process.

At the beginning of the ami baking process:

[root@ip-10-11-20-121 ~]# ls -l /dev/xvdb
lrwxrwxrwx 1 root root 7 Feb 14 05:43 /dev/xvdb -> nvme1n1

After the mounting attempt in the AMI baking process:

[root@ip-10-11-20-121 ~]# ls -l /dev/xvdb
ls: cannot access /dev/xvdb: No such file or directory

[root@ip-10-11-20-121 ~]# ls -l /dev/nvme1n1
ls: cannot access /dev/nvme1n1: No such file or directory

this is happening across all components.

To Reproduce
Steps to reproduce the behavior:

  1. Start AMI baking using Amazon Linux 2
  2. Wait until the AMI baking failed.
  3. The Inspec test to validate if the data device is mounted to /mnt/ebs1 will fail

Expected behavior
AMI baking should pass and the data device should be mounted at /mnt/ebs1

Environment (please complete the following information if relevant):

  • packer-aem 5.12.0
  • amz2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions