Snapcraft: arch-specifc snaps on your development machine?

Oliver Grawert ogra at ubuntu.com
Mon Sep 7 08:23:32 UTC 2015


hi,
Am Montag, den 07.09.2015, 09:48 +0200 schrieb Mark Shuttleworth:
> On 07/09/15 07:51, Michael Nelson wrote:
> > So, before I spend too much time on things I'm not very familiar with, is
> > there something I could do differently above, and/or are there already
> > plans for snapcraft to make creating snaps on your development machine
> > easier (and what are they)?
> 
> I'd be interested in hearing if this works:
> 
>  * use your snappy SD card on the RPi
>  * install LXD as a framework snap
>  * make an Ubuntu machine container (analogous to your chroot-on-AMD64)
>  * build your snap in there
> 
> This way, you'd not be switching SD cards, and you don't have to deal
> with cross-build issues.

...but with SD card issues ...

for my RPi build env I take an USB disk, format it as ext4 and label it
writable, copy the content of the SD cards writable partition into it
(will hopefully not be needed anymore once bug 1485306 is fixed), then
re-label the SD card partition to old-writable, plug both into my arm
board and boot ... from now on the system uses the USB disk for all
writable data which will get you better IO.

i usually just use a chroot in /home/ubuntu then ...

thanks to all the rest of the system being readonly you can
theoretically have multiple USB sticks with different setups that you
can wildly swap around ...

ciao
	oli




More information about the snappy-app-devel mailing list