Comment 5 for bug 716627

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Mattias, tried with hwpack v2, as described at https://code.launchpad.net/~rsalveti/linaro-images/hwpack.natty.linaro-igep, but got the following error while creating the image:

Traceback (most recent call last):
  File "./linaro-media-create", line 161, in <module>
    args.is_live, args.is_lowmem, args.consoles)
  File "/home/rsalveti/projects/linaro/linaro-image-tools/linaro_image_tools/media_create/boards.py", line 598, in populate_boot
    "uboot_in_boot_part is set but not uboot_flavor")
AssertionError: uboot_in_boot_part is set but not uboot_flavor

This is caused because the assert is called at populate_boot even if we're using v2:
"""
    def populate_boot(cls, chroot_dir, rootfs_uuid, boot_partition, boot_disk,
                      boot_device_or_file, is_live, is_lowmem, consoles):
        parts_dir = 'boot'
        if is_live:
            parts_dir = 'casper'
        uboot_parts_dir = os.path.join(chroot_dir, parts_dir)

        cmd_runner.run(['mkdir', '-p', boot_disk]).wait()
        with partition_mounted(boot_partition, boot_disk):
            if cls.uboot_in_boot_part:
                assert cls.uboot_flavor is not None, (
                    "uboot_in_boot_part is set but not uboot_flavor")
...
"""