Comment 4 for bug 705571

Revision history for this message
Peter Maydell (pmaydell) wrote :

I tried the bind mount approach and it fails with a different backtrace instead:
Formating boot partition

Traceback (most recent call last):
  File "/usr/bin/linaro-media-create", line 99, in <module>
    args.should_format_bootfs, args.should_format_rootfs)
  File "/usr/lib/pymodules/python2.6/linaro_media_create/partitions.py", line 64, in setup_partitions
    ensure_partition_is_not_mounted(bootfs)
  File "/usr/lib/pymodules/python2.6/linaro_media_create/partitions.py", line 84, in ensure_partition_is_not_mounted
    if is_partition_mounted(partition):
  File "/usr/lib/pymodules/python2.6/linaro_media_create/partitions.py", line 90, in is_partition_mounted
    device_path = _get_udisks_device_path(partition)
  File "/usr/lib/pymodules/python2.6/linaro_media_create/partitions.py", line 221, in _get_udisks_device_path
    bus.get_object(UDISKS, "/org/freedesktop/UDisks"), UDISKS)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UDisks was not provided by any .service files

...because the l-m-c dependencies install udisks in the chroot but dbus is running in the outside machine (and there doesn't seem to be a udisks package for karmic).