Merge lp:~sergiusens/goget-ubuntu-touch/BeLazy into lp:goget-ubuntu-touch

Proposed by Sergio Schvezov on 2015-06-11
Status: Merged
Approved by: Ricardo Salveti on 2015-06-12
Approved revision: 182
Merged at revision: 182
Proposed branch: lp:~sergiusens/goget-ubuntu-touch/BeLazy
Merge into: lp:goget-ubuntu-touch
Diff against target: 25 lines (+2/-2)
2 files modified
diskimage/core_grub.go (+1/-1)
diskimage/core_uboot.go (+1/-1)
To merge this branch: bzr merge lp:~sergiusens/goget-ubuntu-touch/BeLazy
Reviewer Review Type Date Requested Status
Ricardo Salveti 2015-06-11 Approve on 2015-06-12
Review via email: mp+261679@code.launchpad.net

Commit Message

Lazy unmount when unmounting

To post a comment you must log in.
Ricardo Salveti (rsalveti) wrote :
Download full text (8.1 KiB)

Still failing for me:

$ sudo ubuntu-device-flash core 15.04 --channel stable --oem generic-amd64 --install=webdm --enable-ssh --output ubuntu-15.04-snappy-amd64-generic.img
Determining oem configuration
Starting download of generic-amd64
40.93 KB / 40.93 KB [======================================================================================================================================================================================================================================] 100.00 % 58.64 KB/s
Done
Fetching information from server...
Downloading and setting up...
Installing generic-amd64
Starting download of generic-amd64
40.93 KB / 40.93 KB [======================================================================================================================================================================================================================================] 100.00 % 44.34 KB/s
Done
Installing webdm
Starting download of webdm
6.16 MB / 6.16 MB [========================================================================================================================================================================================================================================] 100.00 % 51.80 KB/s
Done
New image complete
Summary:
 Output: ubuntu-15.04-snappy-amd64-generic.img
 Architecture: amd64
 Channel: stable
 Version: 3
Launch by running: kvm -m 768 ubuntu-15.04-snappy-amd64-generic.img
Determining oem configuration
Starting download of generic-amd64
40.93 KB / 40.93 KB [======================================================================================================================================================================================================================================] 100.00 % 86.57 KB/s
Done
Fetching information from server...
Downloading and setting up...
panic: cannot double map partitions

goroutine 16 [running]:
runtime.panic(0x76b300, 0xc20823dac0)
 /usr/lib/go/src/pkg/runtime/panic.c:279 +0xf5
launchpad.net/goget-ubuntu-touch/diskimage.(*CoreGrubImage).Map(0xc208275400, 0x0, 0x0)
 /tmp/sergio/build-area/goget-ubuntu-touch-0.23/obj-x86_64-linux-gnu/src/launchpad.net/goget-ubuntu-touch/diskimage/core_grub.go:131 +0xc3
main.(*CoreCmd).setup(0xcf36c0, 0x7f1507884758, 0xc208275400, 0xc20826a1b0, 0x3, 0x0, 0x0)
 /tmp/sergio/build-area/goget-ubuntu-touch-0.23/obj-x86_64-linux-gnu/src/launchpad.net/goget-ubuntu-touch/ubuntu-device-flash/core.go:326 +0x10e
main.funcĀ·004(0x0, 0x0)
 /tmp/sergio/build-area/goget-ubuntu-touch-0.23/obj-x86_64-linux-gnu/src/launchpad.net/goget-ubuntu-touch/ubuntu-device-flash/core.go:280 +0x16b
main.(*CoreCmd).Execute(0xcf36c0, 0xc20800e210, 0x1, 0xb, 0x0, 0x0)
 /tmp/sergio/build-area/goget-ubuntu-touch-0.23/obj-x86_64-linux-gnu/src/launchpad.net/goget-ubuntu-touch/ubuntu-device-flash/core.go:285 +0x1b9d
github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc20804a800, 0xc20800e000, 0xb, 0xb, 0x0, 0x0, 0x0, 0x0, 0x0)
 /tmp/sergio/build-area/goget-ubuntu-touch-0.23/obj-x86_64-linux-gnu/src/github.com/jessevdk/go-flags/parser.go:241 +0x7cd
main.main()
 /tmp/sergio/build-area/goget-ubuntu-touch-0.23/obj-x86_64-linux-gnu/src/launchpad.net/goget-ubuntu-touch/ubuntu...

Read more...

Sergio Schvezov (sergiusens) wrote :

> Still failing for me:

This error seems totally unrelated; can you run again (make sure to kpartx -ds /dev/loop[x])

Also add --verbose

Oliver Grawert (ogra) wrote :

works fine for me (after wrangling the whole day with this issue on the rpi image, i didnt even know about this MP :P )

Ricardo Salveti (rsalveti) wrote :

Couldn't reproduce anymore after trying this branch again (after a clean reboot).

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'diskimage/core_grub.go'
2--- diskimage/core_grub.go 2015-04-27 07:02:55 +0000
3+++ diskimage/core_grub.go 2015-06-11 03:14:28 +0000
4@@ -89,7 +89,7 @@
5 }
6
7 mountpoint := filepath.Join(img.baseMount, string(part.dir))
8- if out, err := exec.Command("umount", mountpoint).CombinedOutput(); err != nil {
9+ if out, err := exec.Command("umount", "-l", mountpoint).CombinedOutput(); err != nil {
10 return fmt.Errorf("unable to unmount dir for image: %s", out)
11 } else {
12 }
13
14=== modified file 'diskimage/core_uboot.go'
15--- diskimage/core_uboot.go 2015-04-23 16:54:36 +0000
16+++ diskimage/core_uboot.go 2015-06-11 03:14:28 +0000
17@@ -111,7 +111,7 @@
18
19 for _, part := range img.parts {
20 mountpoint := filepath.Join(img.baseMount, string(part.dir))
21- if out, err := exec.Command("umount", mountpoint).CombinedOutput(); err != nil {
22+ if out, err := exec.Command("umount", "-l", mountpoint).CombinedOutput(); err != nil {
23 panic(fmt.Sprintf("unable to unmount dir for image: %s", out))
24 }
25 }

Subscribers

People subscribed via source and target branches