/srv/irclogs.ubuntu.com/2022/09/21/#snappy.txt

mupPR snapcraft#3918 opened: commands: add init option for git initialization <Created by atomcult> <https://github.com/snapcore/snapcraft/pull/3918>03:58
=== eoli3n_ is now known as eoli3n
LetoThe2ndhowdy there! i'm currently looking into how UC, and therefore the snap store are fit for on-prem, and possibly air-gapped operation. couldn't find any good information though. so 1) is it possible to build a custom UC image without network connectivity? 2) if regulations require hosting of my custom snaps, e.g. applications at a specific place, or even on-prem, is that possible?11:20
mupPR snapd#12162 closed: boot: apply boot logic also for classic with modes boot snaps <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/12162>11:36
mupPR snapd#12166 closed: overlord: start turning restart into a full state manager <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/12166>11:36
ograLetoThe2nd, the siging with the canonical key is mandatory and happens on upload ... so your snap need to loop through the canonical store at least once ... for airgap there is a store proxy you can use and run in airgap mode ... you'd then download your snaps from the canonical store and push them to the proxy machine via ssh or usb stick11:43
ograLetoThe2nd, https://docs.ubuntu.com/snap-store-proxy/en/ 11:43
ogra*signing (heh, we do not require users to sing πŸ™‚ )11:44
ograyou can always use local unsigned snaps for building UC images as long as you use a "dangerous" model assertion 11:45
ogra(indeed these snaps would never update)11:45
LetoThe2ndogra: singing users would be fun!12:17
* LetoThe2nd commences a moshpit12:17
ograπŸ˜„12:17
LetoThe2ndogra: but what does store proxy mean then?12:18
ograwell, it is a proxy running on-prem ... with the ability to run it air-gapped12:19
LetoThe2nde.g. a sneakernet-connected proxy? but that would be on-prem of the network that *receives* the snaps, not the one that *generates* them, right?12:20
ograright12:24
LetoThe2ndunderstood, thanks!12:25
ogra"generate" something you can do locally though ... 12:25
LetoThe2ndhm?12:25
ogra(all snap uploads to the store are binary, already in squashfs image form)12:25
ograonly the signing and security checking happens in the store12:26
ogra(during upload, before being able to publish)12:26
LetoThe2ndso i could generate air-gapped, technically, sneakernet out, and then upload+sign?12:26
ograwell, upload to the global stoe to get the signature ... then download from the global store and push to your air gapped machine12:27
LetoThe2ndi see12:27
LetoThe2ndbut as you mention "everything is binary", how do you provide license compliance?12:28
ograi.e. you need to loop once through the store to get a valid gpg signature with the canonical archive key12:28
ograby store policy/terms and conditions ... 12:28
ograhttps://ubuntu.com/legal/terms-and-policies/snap-store-terms12:28
ogra(point 6 i think)12:29
LetoThe2nduh huh. such legal, much read.12:29
ogra(not much different to the apple or google/android stores)12:30
ograit boils down "up to you how you handle it, but everything has to be legal in the end" )12:30
ogra*down to12:30
LetoThe2ndyeah. the more i look, the more it starts to feel like "an app store for iot devices".12:30
LetoThe2nd(no insult meant)12:30
ograright,that is what it was originally πŸ™‚ 12:31
LetoThe2ndhehe12:31
ograbut then it grew support for desktop apps too ... so it is after all more like the apple app store nowadays12:31
LetoThe2ndslowly get it.12:32
LetoThe2ndHopefully final question for now then, how do I enable a new board?12:35
ograyou need a gadget and kernel snap that support it ... then you create a model assertion that describes it and and that (and the snaps) to ubuntu-image12:37
ogra*and hand that12:38
LetoThe2ndogra: what would the gadget and kernel snaps require? like, is it just a packages u-boot and kernel in the end?12:38
ograthe gadget carries bootloader, partitioning info and initial config data12:38
ograthe kernel ... well, is a kernel and initrd that prefareably support your hardware ...12:39
ograthe model assertion is just a json file you sign 12:39
LetoThe2ndogra: so again, without signing, no fun to be had?12:39
ografor loacal testing and development you can use unsigned snaps and a model assertion that declares the image as "dangerous" 12:40
* LetoThe2nd cranks up Aerosmiths "Living on the edge"12:40
ograthe ubuntu-image command comes with a --snap option that takes a path to a local snap as option12:40
ograso you'd do something like "ubuntu-image snap --snap /path/tπŸ‘‹gadget.snap --snap /path/tπŸ‘‹kernel.snap model.assertion12:41
ogra"12:41
ograbah !!!!12:41
ograsilly emoji plugin12:41
LetoThe2ndokay, i see. what if my hardware doesn't even support secure boot? or requires magic such as the imx'es HAB?12:42
ogra(th wavy hand is "to" with a slash indeed)12:42
ograyou dont have t use secboot at all 12:42
LetoThe2ndmaybe you should plugout the emojis then :-)12:42
ograit is optional12:42
LetoThe2ndk12:42
ograespecially on ARM ou need optee support and such 12:42
ogra*you12:43
LetoThe2ndwell optee is not mandatory for secboot.12:43
ograit is i ubuntu core 12:43
ogra*in12:43
LetoThe2ndah thats what you mean.12:43
ograsigh ... need a new laptop ... kbd gives up12:43
ograon x86 TPM is a hard req for secboot ... on ARM it is optee12:44
* LetoThe2nd recommends a MBP, no kidding.12:44
ogra(TPM2 in fact)12:44
ograyeah, i was pondering an M2 ... but wanted to wait til there is a graphics driver 12:44
ogra(i want to run ubuntu natively in any case ... and it should work as daily driver ... i think the M1/2 are still not ready for that)12:45
LetoThe2ndgot a M1 Max here. Awesome machine, just a bit heavy. had a lenovo X1 nano before that, which was like wow.12:45
ograi had XPS13s for the last three laptops ... to support the team building them πŸ™‚12:46
ograbut the keyboard quality really degraded with each model ... 12:47
LetoThe2ndthe laptop keyboard is ok-ish, but for daily i use a keyboardio atreus by now.12:48
ograwell, i have a collections of self-built keyboards ... but when using the laptop in a comfy chair in the living room i dont really want an external kbd πŸ™‚12:50
LetoThe2nddepends. i just don't like to work in what people call "comfy chairs"12:51
LetoThe2ndso only recently i thought about you once i joined #beagle again, nice to still see you around!12:51
ograsame !12:51
* ogra sadly has to go to a meeting now ... but i'll be back later12:52
LetoThe2ndsame here. take care!12:52
ograyou too !12:52
mupPR snapd#12168 opened: i/b/mount-control: add optional `/` to umount rules <Simple πŸ˜ƒ> <Created by mardy> <https://github.com/snapcore/snapd/pull/12168>14:52
mupPR snapd#12169 opened: i/b/fwupd: add more permissions <Created by valentindavid> <https://github.com/snapcore/snapd/pull/12169>14:57
mupPR snapd#12170 opened: many: add stub services for prompting <Created by mardy> <https://github.com/snapcore/snapd/pull/12170>14:57
mupPR snapd#12171 opened: tests: fix issues related to dbus session and localtime in uc18 <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/12171>19:48

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!