Fwiw, I suspect mtools (or the way its used) is broken. If I run:
$ sudo ./ubuntu-image --workdir /tmp/u-i --channel edge ~/devel/go/src/launchpad.net/goget-ubuntu-touch/ubuntu-device-flash/canonical-pi2.model -o pi2.img
$ sudo fsck.vfat /tmp/u-i/.images/part0.img
fsck.fat 3.0.28 (2015-05-16)
/pi2-kernel_11.snap/DTBS
Has a large number of bad entries. (2/5)
Drop directory ? (y/n) y
Reclaimed 88 unused clusters (45056 bytes).
Free cluster summary wrong (223996 vs. really 224084)
1) Correct
2) Don't correct
...
Fwiw, I suspect mtools (or the way its used) is broken. If I run: go/src/ launchpad. net/goget- ubuntu- touch/ubuntu- device- flash/canonical -pi2.model -o pi2.img i/.images/ part0.img 11.snap/ DTBS
$ sudo ./ubuntu-image --workdir /tmp/u-i --channel edge ~/devel/
$ sudo fsck.vfat /tmp/u-
fsck.fat 3.0.28 (2015-05-16)
/pi2-kernel_
Has a large number of bad entries. (2/5)
Drop directory ? (y/n) y
Reclaimed 88 unused clusters (45056 bytes).
Free cluster summary wrong (223996 vs. really 224084)
1) Correct
2) Don't correct
...