A small workaround that allows creating the emulator image again (as
systemd will ignore the mount point if you mount a tmpfs at the same
spot first).

$ bzr diff
=== modified file 'diskimage/image.go'
--- diskimage/image.go  2015-01-21 23:22:53 +0000
+++ diskimage/image.go  2015-03-16 23:28:01 +0000
@@ -107,6 +107,9 @@
                }
        }()
 
+       if out, err := exec.Command("mount", "-t", "tmpfs", "none", 
img.Mountpoint).CombinedOutput(); err != nil {
+               return fmt.Errorf("unable to mount temp dir to create system 
image: %s", out)
+       }
        if out, err := exec.Command("mount", img.path, 
img.Mountpoint).CombinedOutput(); err != nil {
                return fmt.Errorf("unable to mount temp dir to create system 
image: %s", out)
        }
@@ -126,6 +129,9 @@
        if err := exec.Command("umount", img.Mountpoint).Run(); err != nil {
                return errors.New("Failed to unmount temp dir where system 
image was created")
        }
+       if err := exec.Command("umount", img.Mountpoint).Run(); err != nil {
+               return errors.New("Failed to unmount temp dir where system 
image was created")
+       }
        return nil
 }
 


** Changed in: goget-ubuntu-touch (Ubuntu)
   Importance: Critical => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1423459

Title:
  ubuntu-emulator create fails for devel-proposed: Failed to unmount
  temp dir where system image was created

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/1423459/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to