Getting error amazon-ebs: Error: Could not stat device /dev/nvme1n1- for centos7
rottepranaya opened this issue · 0 comments
rottepranaya commented
Hi ,
Am trying to built custom AMI of centos7 for EkS . am using the json of centos7 provided here .
Am getting below error :
amazon-ebs: + partition_disks /dev/nvme1n1
amazon-ebs: + local disk_name=/dev/nvme1n1
amazon-ebs: + parted -a optimal -s /dev/nvme1n1 mklabel gpt mkpart var ext4 0% 20% mkpart varlog ext4 20% 40% mkpart varlogaudit ext4 40% 60% mkpart home ext4 60% 70% mkpart varlibdocker ext4 70% 90%
amazon-ebs: Error: Could not stat device /dev/nvme1n1 - No such file or directory.
==> amazon-ebs: Provisioning step had errors: Running the cleanup provisioner, if present...
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' errored after 8 minutes 38 seconds: Script exited with non-zero exit status: 1.Allowed exit codes are: [0]