linaro-media-create fails when hwpack has a 3.0 kernel

Bug #815254 reported by Ricardo Salveti
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
Critical
James Westby

Bug Description

For 11.07 release most hwpacks are delivering a 3.0 kernel, instead of the old 2.6.38, and current linaro-media-create head can't handle it correctly:

$ sudo linaro-media-create --mmc /dev/sdb --dev panda --rootfs ext3 --hwpack /home/rsalveti/projects/linaro/images/files/hwpack_linaro-lt-panda_20110723-0_armel_supported.tar.gz --binary /home/rsalveti/projects/linaro/images/files/nano-n-tar-20110723-0.tar.gz
...
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
`/tmp/tmpiw9195/binary/usr/lib/u-boot/omap4_panda/u-boot.bin' -> `/tmp/tmpiw9195/boot-disc/u-boot.bin'
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 483, in populate_boot
    rootfs_uuid, boot_disk, boot_device_or_file)
  File "/home/rsalveti/projects/linaro/linaro-image-tools/linaro_image_tools/media_create/boards.py", line 570, in make_boot_files
    cls.set_appropriate_serial_tty(chroot_dir)
  File "/home/rsalveti/projects/linaro/linaro-image-tools/linaro_image_tools/media_create/boards.py", line 560, in set_appropriate_serial_tty
    minor_version = re.match('.*2\.6\.([0-9]{2}).*', basename).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

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

Without the fix we're unable to release the RC and the image for 11.07, as users are not going to be able to install their images.

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

Tested patch http://paste.ubuntu.com/650662/ pointed by James at the IRC and it fixed the issue.

Revision history for this message
James Westby (james-w) wrote :
Changed in linaro-image-tools:
assignee: nobody → Bernhard Rosenkraenzer (berolinux)
assignee: Bernhard Rosenkraenzer (berolinux) → James Westby (james-w)
Revision history for this message
James Westby (james-w) wrote :

err, wrong tab, sorry.

James Westby (james-w)
Changed in linaro-image-tools:
status: Confirmed → Fix Committed
James Westby (james-w)
Changed in linaro-image-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.