local variable 'globalmounts' referenced before assignment

Bug #799642 reported by Murray Cumming
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mic2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: mic2

When I try to use mic2 ( ) in Ubuntu Natty, using the regular Natty package (0.23.0), I get a Python error. Maybe it's fixed in 0.24.x, though that's not packaged for Ubuntu Natty yet.

This is the full output:

[murrayc@murrayc-desktop ~]$ sudo mic-chroot ~/meego-chroot
[sudo] password for murrayc:
+====================================================================================+
| WARNING: this script is very dangerous, it may damage your system data, |
| so please use it carefully and read this warning seriously. |
| |
| mic-chroot will create some temporary directories under /var/tmp, their names |
| look like 'mic-tmp-*', mic-chroot also creates a directory to save image |
| file system for chroot. For such directories, please use mic-rm-chroot-dir to |
| remove, otherwise, you may remove your whole system by 'rm -rf <yourdir>' if you |
| terminate mic-chroot because of some exceptions or unknown errors, the root |
| cause is mic-chroot will bind mount / to chroot directory, exceptional |
| terminations didn't unmount it, so you may damage your system, we have warned you. |
| Please use it very very carefully, and don't use 'rm -rf' for such directories, |
| instead, use 'mic-rm-chroot-dir' |
+====================================================================================+

Launching shell. Exit to continue.
----------------------------------
bind_mount: /proc -> /home/murrayc/meego-chroot//proc
bind_mount: /proc/sys/fs/binfmt_misc -> /home/murrayc/meego-chroot//proc/sys/fs/binfmt_misc
bind_mount: /sys -> /home/murrayc/meego-chroot//sys
bind_mount: /dev -> /home/murrayc/meego-chroot//dev
bind_mount: /dev/pts -> /home/murrayc/meego-chroot//dev/pts
bind_mount: /dev/shm -> /home/murrayc/meego-chroot//dev/shm
bind_mount: /var/lib/dbus -> /home/murrayc/meego-chroot//var/lib/dbus
bind_mount: /var/run/dbus -> /home/murrayc/meego-chroot//var/run/dbus
bind_mount: / -> /home/murrayc/meego-chroot//parentroot
bind_mount: /lib/modules/2.6.32-25-generic -> /home/murrayc/meego-chroot//lib/modules/2.6.32-25-generic
bind_mount: /lib/modules/2.6.35-22-generic -> /home/murrayc/meego-chroot//lib/modules/2.6.35-22-generic
bind_mount: /lib/modules/2.6.38-8-generic -> /home/murrayc/meego-chroot//lib/modules/2.6.38-8-generic
bind_mount: /lib/modules/2.6.31-22-generic -> /home/murrayc/meego-chroot//lib/modules/2.6.31-22-generic
Traceback (most recent call last):
  File "/usr/bin/mic-chroot", line 254, in <module>
    sys.exit(main())
  File "/usr/bin/mic-chroot", line 229, in main
    chroot.chroot(options.saveto, bindmounts = options.bindmounts, execute = options.execute)
  File "/usr/lib/pymodules/python2.7/mic/chroot/chroot.py", line 440, in chroot
    cleanup_chrootenv(chrootdir, bindmounts, globalmounts)
UnboundLocalError: local variable 'globalmounts' referenced before assignment

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mic2 (Ubuntu):
status: New → Confirmed
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.