Using ubuntu-device-flash 0.23-0ubuntu2 on vivid, I can't create a snappy image using the extra --install parameter (to bundle a snap from the store):
$ sudo ubuntu-device-flash core 15.04 --channel stable --oem beagleblack --install=hello-world --enable-ssh --output ubuntu-15.04-snappy-armhf-bbb.img
Determining oem configuration
Starting download of beagleblack
280.75 KB / 280.75 KB [====================================================================================================================================================================================================================================] 100.00 % 69.87 KB/s
Done
Fetching information from server...
Downloading and setting up...
Installing beagleblack
Starting download of beagleblack
280.75 KB / 280.75 KB [====================================================================================================================================================================================================================================] 100.00 % 96.10 KB/s
Done
Installing hello-world
Starting download of hello-world
21.55 KB / 21.55 KB [======================================================================================================================================================================================================================================] 100.00 % 77.02 KB/s
Done
panic: unable to unmount dir for image: umount: /tmp/diskimage898827634/system: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
Using ubuntu-device-flash 0.23-0ubuntu2 on vivid, I can't create a snappy image using the extra --install parameter (to bundle a snap from the store):
$ sudo ubuntu-device-flash core 15.04 --channel stable --oem beagleblack --install= hello-world --enable-ssh --output ubuntu- 15.04-snappy- armhf-bbb. img ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =====] 100.00 % 69.87 KB/s ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =====] 100.00 % 96.10 KB/s ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ] 100.00 % 77.02 KB/s 98827634/ system: target is busy
Determining oem configuration
Starting download of beagleblack
280.75 KB / 280.75 KB [======
Done
Fetching information from server...
Downloading and setting up...
Installing beagleblack
Starting download of beagleblack
280.75 KB / 280.75 KB [======
Done
Installing hello-world
Starting download of hello-world
21.55 KB / 21.55 KB [======
Done
panic: unable to unmount dir for image: umount: /tmp/diskimage8
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)
goroutine 1 [running, locked to thread]: net/goget- ubuntu- touch/diskimage .(*CoreUBootIma ge).Unmount( 0xc2080e4420, 0x0, 0x0) buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/launchpad. net/goget- ubuntu- touch/diskimage /core_uboot. go:115 +0x67d buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/launchpad. net/goget- ubuntu- touch/ubuntu- device- flash/core. go:341 +0x120 CoreCmd) .setup( 0xcf0920, 0x7efd782dbd80, 0xc2080e4420, 0xc2082a0720, 0x3, 0x0, 0x0) buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/launchpad. net/goget- ubuntu- touch/ubuntu- device- flash/core. go:405 +0x1753 buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/launchpad. net/goget- ubuntu- touch/ubuntu- device- flash/core. go:280 +0x171 CoreCmd) .Execute( 0xcf0920, 0xc20800a0b0, 0x1, 0xb, 0x0, 0x0) buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/launchpad. net/goget- ubuntu- touch/ubuntu- device- flash/core. go:285 +0x20d9 com/jessevdk/ go-flags. (*Parser) .ParseArgs( 0xc2080566c0, 0xc20800a000, 0xb, 0xb, 0x0, 0x0, 0x0, 0x0, 0x0) buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/github. com/jessevdk/ go-flags/ parser. go:241 +0x8b8 buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/launchpad. net/goget- ubuntu- touch/ubuntu- device- flash/main. go:62 +0x3ac
launchpad.
/build/
main.func·006()
/build/
main.(*
/build/
main.func·004(0x0, 0x0)
/build/
main.(*
/build/
github.
/build/
main.main()
/build/
goroutine 5 [syscall]: go/src/ os/signal/ signal_ unix.go: 21 +0x1f go/src/ os/signal/ signal_ unix.go: 27 +0x35
os/signal.loop()
/usr/lib/
created by os/signal.init·1
/usr/lib/
goroutine 6 [chan receive]: net/snappy/ partition. func·005( ) buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/launchpad. net/snappy/ partition/ partition. go:270 +0x52 net/snappy/ partition. setupSignalHand ler buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/launchpad. net/snappy/ partition/ partition. go:275 +0x21e
launchpad.
/build/
created by launchpad.
/build/
goroutine 17 [syscall, locked to thread]: go/src/ runtime/ asm_amd64. s:2232 +0x1
runtime.goexit()
/usr/lib/
goroutine 58 [chan receive]: buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/launchpad. net/goget- ubuntu- touch/ubuntu- device- flash/core. go:261 +0x1e8 CoreCmd) .Execute buildd/ goget-ubuntu- touch-0. 23/obj- x86_64- linux-gnu/ src/launchpad. net/goget- ubuntu- touch/ubuntu- device- flash/core. go:264 +0x2015
main.func·003()
/build/
created by main.(*
/build/