Closed tjbaker closed 10 years ago
Can you provide the full command line that you executed? Also, what AMI/instance-type did you run aminate on?
The instance I ran aminator on was a PV based one. Is chroot jail supported across PV - HVM? We've been successful in our build pipeline with PV - PV for some time. The desire to try out t2 instances has prompted the move to HVM so I wonder if this would work HVM - HVM.
The command to aminator via maven isn't exotic:
<exec executable="sudo">
<arg value="/usr/bin/aminate"/>
<arg line="${debug.aminate}"/>
<arg value="-B"/>
<arg value="ami-76817c1e"/>
<arg value="-n"/>
<arg value="myname"/>
<arg value="myrpm.noarch.rpm"/>
</exec>
The problem is that the AMI you selected for a base is partitioned. I ran into the same issue using this AMI. Here is the partition layout.
# parted /dev/xvdj1 print
Model: Unknown (unknown)
Disk /dev/xvdj1: 8590MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
128 1049kB 2097kB 1049kB BIOS Boot Partition
1 2097kB 8590MB 8588MB ext3 Linux
Information: Don't forget to update /etc/fstab, if necessary.
Issue #129 contains a nice discussion describing the issues around why aminator does not support partitioned AMIs. If you want HVM, try using a non-partitioned AMI with the --vm-type hvm
option.
Attempting to use the latest HVM Amazon Linux AMI (ami-76817c1e) which supports the new t2 instance type fails with "stderr: mount: /dev/xvdf1 is write-protected, mounting read-only"
Here is the full debug output: