openSUSE/kiwi — pull request #309 by rjschwei (2014-01-25 20:14:40+00:00)
Title: The EC2 fix for the 13.1 branch

- This is a combination of the following commits authored by Marcus and
Robert to address EC2 build issues, commit ids from master
+ af10ecce8622a1a7aa11cc1ea9ca6dea4d01de63
+ 086c2a2bbb763bdd266274d13310f03950be92ed
+ e8c9cb2f97e0efe6722035a2817390012bc5b959
+ 87b49253440edacad78354170a9e839edbe2a986
+ 2ea8ea61980595b84870dccbf6b706f38724c524
+ 1293f3d6af18eb96973bdc39253c7ea729d82cdd
+ 8f1f4ca176a76b51380394e068f8672ff5326838
+ 9d43e03a812dd056ae9bcbaff9e967d3261991e2
+ 50b72353b14e7c15044be7dc193af953d41420ea
+ 6741d23cfd282faf9f2acfa84e162536391b6124
+ aba2000d946e1cf5d577a625c1cbfcab218fad7d

- Change the way we create an EC2 image
+ Previously we created an EC2 image as a flat filesystem image
this requred some special codeing and we ended up calling mkinitrd
from within kiwi. As mkinitrd evolved to require a live root filesystem
and with the impending move to dracut we need to start using a kiwi
generated initrd. Therefore, EC2 image will now be created as disk
images just like other vmx images. We also drop the use of the
external ec2-ami-tools. Creating abundle is relatively easy and this
functionality requires people to add thei EC2 credentials to the config
file. That makes it easy to accidentally share private information.
+ Remove XML elemnts ec2config and its children
ec2accountnr, ec2certfile, ec2privatekeyfile, ec2region
+ Introduce "ec2" as a firmware option
we need this to set the partition table to be gpt instead of msdos
+ Print an error message for format="ec2" during XML validation
we maintain format="ec2" in the schema for now to allow us to generate
a more sensible error message than the parser would. This is an
incompatible schema change
+ Remove EC2 region check in Validator
+ Remove KIWIEC2Region.txt
+ Update unit tests
+ Properly pass the boottimeout setting to the initrd config
+ Remove the XMLEC2Data object and its unit tests
+ Remove special code for EC2 initrd creation calling mkinitrd

- added ec2Flavour profile to create EC2 VMX disk image types along
with this change the examples using format="ec2" were adapted to
disk layout instead of flat (filesystem) layout too

- Fixed ec2 kernel profile for 13.1 and SLE11
the required xen drivers were not added when using ec2 profile
the xen package must not be installed when using ec2 profile

- Update oem/vmx boot image descriptions to allow selecting
an ec2 setup profile and an ec2 kernel profile

- Fixed vmx type definition for EC2 usage in all templates
* use ec2 and ec2k boot and kernel profiles

- fix spelling EC2 not Ec2

- update the documentation for the EC2 image build
+ document new commands to use for uploading images aws-cli vs ec2-*
commands
+ changes due to the new way of building images
- we no longer create the bundle in kiwi
_ adjust for removed XML elements
- update the examples to reflect the new type element setup for EC2

- final touches for EC2 changes
+ let kiwi add root= to the kernel command line for EC2 images
this is needed to get the drivers to load properly
+ consider installfailsafe setting for grub vmx images

- Fixed docbook syntax for changes recently done in kiwi-doc-ec2.xml

- ec2 example for 13.1
+ forgot to commit this with the doc changes in 87b49253440eda

- Allow vmxboot to boot Xen EC2 instances
In order to do that the boot device setup code now also searches
for the presence of the 'root=...' information from cmdline as it
is passed when booting via EC2. If found the given device is used
and the system boots in LOCAL_BOOT mode