[Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-25 Thread Ricardo Salveti
Fixed with systemd 219-4ubuntu10

** Package changed: goget-ubuntu-touch (Ubuntu) => systemd (Ubuntu)

** Changed in: systemd (Ubuntu)
   Status: Confirmed => Fix Released

-- 
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/systemd/+bug/1423459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-22 Thread dinamic
same here on Ubuntu 15.04 http://i.imgur.com/O5kwPZd.png

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-22 Thread dinamic
Creating "test" from devel-proposed revision 145
Downloading...
...
Setting up...

Setting up a default password for phablet to: ''

Failed to unmount temp dir where system image was created

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-17 Thread Martin Pitt
Hey Ricardo,

the "unmounted due to inactive unit" was fixed upstream recently. I can 
backport these after my holidays.
-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-16 Thread Ricardo Salveti
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 +
+++ diskimage/image.go  2015-03-16 23:28:01 +
@@ -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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-16 Thread Ricardo Salveti
Same issue also described at
https://bugs.gentoo.org/show_bug.cgi?id=541402

It is indeed a different behavior with systemd, where it tries to
control the calls to 'mount'.

** Bug watch added: Gentoo Bugzilla #541402
   https://bugs.gentoo.org/show_bug.cgi?id=541402

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-16 Thread Ricardo Salveti
This actually smells something with systemd, as I just noticed that the
original issue is that the mount point gets unmounted right after it
gets mounted by ubuntu-emulator.

rsalveti@evasys:/tmp/sergio$ sudo ubuntu-emulator create 
--channel=ubuntu-touch/vivid-proposed test_x86 --use-raw-disk
Creating "test_x86" from ubuntu-touch/vivid-proposed revision 138
Downloading...
Setting up...
Mount: calling: mount 
/home/rsalveti/.local/share/ubuntu-emulator/test_x86/ubuntu-system.img 
/tmp/ubuntu-system364514705

And from syslog:
Mar 16 19:17:06 evasys systemd[2918]: Unit tmp-ubuntu\x2dsystem364514705.mount 
is bound to inactive unit. Stopping, too.
Mar 16 19:17:06 evasys systemd[1]: Unit tmp-ubuntu\x2dsystem364514705.mount is 
bound to inactive unit. Stopping, too.
Mar 16 19:17:06 evasys systemd[1]: Unmounting /tmp/ubuntu-system364514705...
Mar 16 19:17:06 evasys systemd[2918]: Unmounting /tmp/ubuntu-system364514705...
Mar 16 19:17:06 evasys kernel: [55815.378380] EXT4-fs (loop0): mounted 
filesystem with ordered data mode. Opts: (null)
Mar 16 19:17:06 evasys systemd[1]: Requested transaction contradicts existing 
jobs: Resource deadlock avoided
Mar 16 19:17:06 evasys umount[27719]: umount: /tmp/ubuntu-system364514705: not 
mounted
Mar 16 19:17:06 evasys systemd[2918]: tmp-ubuntu\x2dsystem364514705.mount mount 
process exited, code=exited status=1
Mar 16 19:17:06 evasys systemd[2918]: Unmounted /tmp/ubuntu-system364514705.
Mar 16 19:17:06 evasys systemd[2918]: Unit tmp-ubuntu\x2dsystem364514705.mount 
entered failed state.
Mar 16 19:17:06 evasys systemd[1]: Unmounted /tmp/ubuntu-system364514705.

Same happens when I try to manually mount the system image. And which is
interesting because mount actually works fine, not giving any error, but
then systemd just unmount it right away.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-13 Thread Ricardo Salveti
** Changed in: goget-ubuntu-touch (Ubuntu)
   Importance: High => Critical

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-13 Thread Alberto Salvia Novella
** Changed in: goget-ubuntu-touch (Ubuntu)
   Importance: Undecided => 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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-13 Thread Timo Jyrinki
For me, the creation failed with:
---
351.43 MB / 351.43 MB 
[]
 100.00 % 1.41 MB/s 
Setting up...
Setting up a default password for phablet to: ''
open /tmp/ubuntu-system872087212/build.prop: permission denied
---
And I had only empty /tmp/ubuntu-system902863095/ (different number).

The emulator is "created", but running it gives:
open /home/timo/.local/share/ubuntu-emulator/test/.device: no such file or 
directory

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1423459] Re: ubuntu-emulator create fails for devel-proposed: Failed to unmount temp dir where system image was created

2015-03-13 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: goget-ubuntu-touch (Ubuntu)
   Status: New => Confirmed

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs