l-m-c & hwpack fails / tries to rm /proc

Bug #643601 reported by Tom Gall
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
Medium
Guilherme Salgado
linaro-image-tools (Ubuntu)
Fix Released
Undecided
Unassigned
Maverick
Fix Released
Undecided
Unassigned
Natty
Fix Released
Undecided
Unassigned

Bug Description

Using l-m-c from today (9/20)

./linaro-media-create --rootfs ext3 --mmc /dev/sdc --dev beagle --hwpack /home/tgall/hwpacks/hwpack_linaro-omap3_20100917-16_armel_supported.tar.gz --binary ~tgall/binary-tar-alip-0918.tar.gz

I see...
sudo sfdisk -l:
Disk /dev/sda: 19457 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdb: 481 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdc: 966 cylinders, 255 heads, 63 sectors/track

mount:
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)

Are you 100% sure, on selecting [/dev/sdc] (y/n)? y

Unpacking hardware pack ...Done
W: Duplicate sources.list entry http://ports.ubuntu.com/ maverick/main armel Packages (/var/lib/apt/lists/ports.ubuntu.com_dists_maverick_main_binary-armel_Packages)
W: Duplicate sources.list entry http://ports.ubuntu.com/ maverick/universe armel Packages (/var/lib/apt/lists/ports.ubuntu.com_dists_maverick_universe_binary-armel_Packages)
W: Duplicate sources.list entry http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/ maverick/main armel Packages (/var/lib/apt/lists/ppa.launchpad.net_linaro-maintainers_overlay_ubuntu_dists_maverick_main_binary-armel_Packages)
W: You may want to run apt-get update to correct these problems
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-image-linaro-omap : Depends: linux-image-2.6.35-1006-linaro-omap but it is not installable
E: Broken packages
Cleaning up ...W: Duplicate sources.list entry http://ports.ubuntu.com/ maverick/main armel Packages (/var/lib/apt/lists/ports.ubuntu.com_dists_maverick_main_binary-armel_Packages)
W: Duplicate sources.list entry http://ports.ubuntu.com/ maverick/universe armel Packages (/var/lib/apt/lists/ports.ubuntu.com_dists_maverick_universe_binary-armel_Packages)
W: Duplicate sources.list entry http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/ maverick/main armel Packages (/var/lib/apt/lists/ppa.launchpad.net_linaro-maintainers_overlay_ubuntu_dists_maverick_main_binary-armel_Packages)
W: You may want to run apt-get update to correct these problems
Done
rm: cannot remove `/tmp/tmp.Ljq8n0b7bQ/binary/proc/dri/0/vma': Operation not permitted
rm: cannot remove `/tmp/tmp.Ljq8n0b7bQ/binary/proc/dri/0/gem_objects': Operation not permitted
rm: cannot remove `/tmp/tmp.Ljq8n0b7bQ/binary/proc/dri/0/gem_names': Operation not permitted
rm: cannot remove `/tmp/tmp.Ljq8n0b7bQ/binary/proc/dri/0/bufs': Operation not permitted
rm: cannot remove `/tmp/tmp.Ljq8n0b7bQ/binary/proc/dri/0/queues': Operation not permitted
rm: cannot remove `/tmp/tmp.Ljq8n0b7bQ/binary/proc/dri/0/clients': Operation not permitted
rm: cannot remove `/tmp/tmp.Ljq8n0b7bQ/binary/proc/dri/0/vm': Operation not permitted
rm: cannot remove `/tmp/tmp.Ljq8n0b7bQ/binary/proc/dri/0/name': Operation not permitted
rm: cannot remove `/tmp/tmp.Ljq8n0b7bQ/binary/proc/asound/Intel': Operation not permitted
rm: cannot remove `/tmp/tmp.Ljq8n0b7bQ/binary/proc/asound/card0/id': Operation not permitted
.....

There's a much longer list of proc/* entries following but no other messages from l-m-c besides of the form "trying to rm something in tmp/tmp.Ljq8n0b7bQ/binary/proc/*******': Operation not permitted

Granted the error about broken packages is there, but the point of this bug report is we probably should fail a little more gracefully.

Related branches

Revision history for this message
Guilherme Salgado (salgado) wrote :

This happens because when the call to linaro-hwpack-install fails, l-m-c will try to remove the temp chroot without first unmounting its /proc

Changed in linaro-image-tools:
assignee: nobody → Guilherme Salgado (salgado)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Guilherme Salgado (salgado) wrote :

Tom, can you try l-m-c from lp:~salgado/linaro-image-tools/bug-643601 and see if it fixes this problem?

Revision history for this message
Tom Gall (tom-gall) wrote :

Shall do! Thanks!

Changed in linaro-image-tools:
status: Triaged → Fix Committed
Steve Langasek (vorlon)
Changed in linaro-image-tools (Ubuntu Maverick):
status: New → In Progress
Changed in linaro-image-tools (Ubuntu Natty):
status: New → Fix Committed
Changed in linaro-image-tools:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted linaro-image-tools into maverick-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in linaro-image-tools (Ubuntu Maverick):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linaro-image-tools - 0.3

---------------
linaro-image-tools (0.3) maverick-proposed; urgency=low

  [ Steve Langasek ]
  * no longer using the 'omap' uboot flavor support in live-helper; instead,
    run the mkimage commands directly for omap.
  * fix the paths used for looking up x-loader and u-boot binaries in the
    tarball; these don't belong in /boot at all, pull them from /usr/lib.
  * only enforce the presence of commands we're actually using; this lets
    us automatically pull in btrfs-tools when btrfs is specified.
  * add sudo to a couple more commands in linaro-media-create, so the script
    itself can run as non-root as intended.

  [ James Westby ]
  * Add a linaro-hwpack-create script for the creation of hardware packs.

  [ Steve Langasek ]
  * Fix lookup of linaro-hwpack-install to work correctly when l-m-c is on
    the path. Closes: #652669.

  [ Loïc Minier ]
  * Drop spurious single quote character in boot_args_options for beagle|igep;
    thanks Peter Maydell; LP: #667400.
  * Set LC_ALL=C when entering the chroot as it has no locales. LP: #651905.

  [ Tom Gall ]
  * Use --numeric-owner argument to tar when unpacking, so that files get
    the right owner on boot of the image. LP: #652121.

  [ Dave Martin ]
  * Implement proper cleanup handling on signal / exit, so that we don't
    leave clutter behind on error. This also fixes the message at the end of
    a successful install about being unable to unmount proc. LP: #616385,
    #660196, #667394, #643601, #627383.
 -- Steve Langasek <email address hidden> Tue, 09 Nov 2010 12:50:26 -0800

Changed in linaro-image-tools (Ubuntu Maverick):
status: Fix Committed → Fix Released
Steve Langasek (vorlon)
Changed in linaro-image-tools (Ubuntu Maverick):
status: Fix Released → Fix Committed
Changed in linaro-image-tools (Ubuntu Natty):
status: Fix Committed → Fix Released
Revision history for this message
Matt Waddel (mwaddel) wrote :

The new version of linaro-image-tools (0.3) works for the vexpress platform.

Revision history for this message
Steve Langasek (vorlon) wrote :

Thanks for confirming. Since this l-i-t works for all of my image creation tests, and has now been independently verified, I'm marking this bug as verification-done.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linaro-image-tools - 0.3

---------------
linaro-image-tools (0.3) maverick-proposed; urgency=low

  [ Steve Langasek ]
  * no longer using the 'omap' uboot flavor support in live-helper; instead,
    run the mkimage commands directly for omap.
  * fix the paths used for looking up x-loader and u-boot binaries in the
    tarball; these don't belong in /boot at all, pull them from /usr/lib.
  * only enforce the presence of commands we're actually using; this lets
    us automatically pull in btrfs-tools when btrfs is specified.
  * add sudo to a couple more commands in linaro-media-create, so the script
    itself can run as non-root as intended.

  [ James Westby ]
  * Add a linaro-hwpack-create script for the creation of hardware packs.

  [ Steve Langasek ]
  * Fix lookup of linaro-hwpack-install to work correctly when l-m-c is on
    the path. Closes: #652669.

  [ Loïc Minier ]
  * Drop spurious single quote character in boot_args_options for beagle|igep;
    thanks Peter Maydell; LP: #667400.
  * Set LC_ALL=C when entering the chroot as it has no locales. LP: #651905.

  [ Tom Gall ]
  * Use --numeric-owner argument to tar when unpacking, so that files get
    the right owner on boot of the image. LP: #652121.

  [ Dave Martin ]
  * Implement proper cleanup handling on signal / exit, so that we don't
    leave clutter behind on error. This also fixes the message at the end of
    a successful install about being unable to unmount proc. LP: #616385,
    #660196, #667394, #643601, #627383.
 -- Steve Langasek <email address hidden> Tue, 09 Nov 2010 12:50:26 -0800

Changed in linaro-image-tools (Ubuntu Maverick):
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.