/srv/irclogs.ubuntu.com/2021/02/01/#snappy.txt

mborzeckimorning06:52
mborzeckischool run07:32
zygagood morning07:51
mborzeckire07:55
mborzeckimvo: zyga: hey07:55
zyga:-)07:55
zygamvo hey07:55
mvogood morning zyga and mborzecki !07:55
zygamvo I learned of a very useful feature of raspberry pi yesterday07:56
zygamvo pi can be booted from USB (as in driven by USB connection entirely) without any SD cards07:56
zygathere are official tools and support for that07:56
zygathe configuration is quite flexible, allowing "override" from usb or fallback to regular boot07:57
zygathere's also some very useful thing you should look at at some point, allowing watchdog recovery during boot process that hanged07:57
zygaand the best thing is, it's just a toggle, very easy to set up, unrelated to anything on SD cards07:57
zygaI also had a look at the try boot mode07:58
zygabut I didn't run that yet07:58
mvozyga: sounds super interssting, I would love to hvae the watchdog boot, I think that would be a great win07:58
zyganot sure if I will pick any of that up as a part of my work yet, as priority for pi is currently low, but I think it's fairly complete in terms of features for both testing and proper IOT operation07:59
zygalet me show you how to enable it07:59
zygathis is the try boot mode: https://github.com/raspberrypi/linux/commit/757666748ebf69dc161a262faa3717a14d68e5aa08:00
zygait's an out of tree patch, as far as I know, it would needed to be applied to the ubuntu pi kernel08:00
zygathe boot selection and watchdog are described on https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md08:01
zygathe things to grep for are MAX_RESTARTS08:01
mvozyga: yeah, dave told us about the tryboot, we plan to use this, ideally in close cooperation with dave08:01
zygamvo, that's it so far, I'm off to learn yoto layering08:02
zygamvo oh, I submitted zmk to fedora08:02
zygaopensuse is next08:02
zygaand then I can see if it would be possible to improve small bits of snapd makefiles with it08:03
mvozyga: cool! thanks for the pointers, I check that out08:06
zygamvo I also found POWER_OFF_ON_HALT interesting, it might be a good thing to expose via gadget08:06
zygaso if you have no hats, your pi can really shut down and stay off08:06
zygaand not just reboot like it does today08:06
zygapstolowski good morning :)08:07
pstolowskiheya08:07
mborzeckipstolowski: hey08:07
pstolowskimvo: hey, i've tagged https://github.com/snapcore/snapd/pull/9883 for 2.49, going to add a unit test to it08:18
mupPR #9883: cmd/snap-preseed: initialize snap.SanitizePlugsSlots for gadget in seeds <Bug> <Preseeding 🍞> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9883>08:18
mvopstolowski: thank you!08:24
Fleckhello, is there a way to get snapd working on old ubuntu 11.10? (Don't ask why not upgrade etc :D)09:13
pstolowskiFleck: no, due to systemd, apparmor & old kernel. 14.04 was the oldest that got snapd support, and that already was challenging10:00
Fleckok, thank you pstolowski10:01
ograthere is https://help.ubuntu.com/community/EOLUpgrades to get you to a supported release though10:16
mvomborzecki: fwiw, I replied to 987310:51
mvomborzecki: tl;dr happy to change thing but it would not be symetrical to what we do with layOutStructureContent anymore10:51
Fleckogra: yes, I know that, thanks! :)11:12
mvoijohnson: hey, is it ok to squash-merge 9885 or would you rather keep the individual commits because they are "nicer" than lumbing them together?11:41
ijohnsonhey mvo11:42
ijohnsonlet me take a look, I don't remember what 9885 is11:42
mvoijohnson: no worries11:42
mvoijohnson: also no rush11:42
ijohnsonmvo: yeah it should be fine to squash merge them if you want to, but note that I didn't add any unit tests there yet, someone should do that before we merge I think11:42
ijohnsonI meant to do that but didn't get time on Friday, I called this out in the SU doc, but I guess I forgot to explain that in the PR description11:43
mvoijohnson: oh, ok11:43
mvoijohnson: I add a note there11:44
ijohnsonlet me try and write some quickly since it doesn't appear that anyone else has pickedu p the mantle11:44
mvoijohnson: thanks! no rush fwiw11:44
mvopstolowski: is it ok to squash merge 9883?11:46
pstolowskimvo: yes!11:46
mvota11:46
pedronismvo: commented in #987312:13
mupPR #9873: gadget: add new ResolvedContent and populate from LayoutVolume() <UC20> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9873>12:13
mvopedronis: nice!12:20
om26erHow does UbuntuCore ensure that systemd is able to see installed snap packages' .mount unit files on boot ?12:34
om26erin our case we are seeing https://github.com/systemd/systemd/issues/8732 -- Does UbuntuCore incorporate some sort of "hack" for that ?12:34
om26ermaybe ogra you know that ^12:34
om26erI tried creating bind mounts for /etc/systemd/system on an external partition and systemd seems to always "miss" those units12:35
ograno, there is no hack regarding systemd stuff on core12:36
ograsnapd just puts the files into /etc/systemd/system IIRC and relies on systemd to DTRT with them12:36
ograand /etc/system i writable per /etc/system-image/writable-paths12:38
ogras/i/is/12:38
ograerr ... /etc/systemd indeed12:38
om26erfor a "classic" system that is generally fine. For a system where rootfs is read-only we have to bind-mount /etc/systemd on a "writable" partition and when I actually do that, systemd seems to "miss" the .mount units all together12:39
om26ersystemctl daemon-reload and systemctl start default.target seems to "fix" that but that's a hack really.12:40
om26erAnyways, it's good to know that UbuntuCore doesn't any such hacks, so I guess the issue is likely on my end12:40
mvopedronis: I had a revert bits in 9873 again, sorry for that. the overlord tests fail and I think I can only add this in 9875 because before passing the kernelroot is not wired up yet in the higher layers :/12:44
mvopedronis: sorry for that, I only ran the local tests but not the overlord tests initially12:44
pedronismvo: ok12:44
mborzeckiom26er: well that's what ubuntu core does, /etc/systemd/system comes from a writable partition, as do a couple of other locations13:09
mborzeckiom26er: this files defines relevant locations: https://github.com/snapcore/core20/blob/master/static/etc/system-image/writable-paths13:10
om26ermborzecki my fstab, inspired by the above link looks like https://gist.github.com/om26er/0a331e5cd20b81ecd81fc9bd85c39c69 -- However it seem there is a race condition somewhere. Sometimes systemd is not able to see the mount units of my snap packages, hence their mounting gets skipped, causing broken snaps13:15
ijohnsonom26er: ubuntu core mounts the units before systemd starts frm the initrd, hence why it works w/o race conditions on ubuntu core13:16
om26erijohnson ah, that would definitely explain it.13:17
mborzeckiom26er: hmm otoh fstab generator runs early, afaict it should pick up those mounts and then they would get ordered before snaps?13:18
om26erI think Lennart's reply here https://github.com/systemd/systemd/issues/8732 also supports what ijohnson said. I was curious to know what exactly UbuntuCore is doing to circumvent that13:20
mborzeckimvo: https://github.com/snapcore/snapd/pull/986714:21
mupPR #9867: overlord/devicestate: task for updating boot configs, spread test <Run nested> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9867>14:21
mvota14:21
mborzeckimvo: gadget assets update is only added on !classic14:28
mvomborzecki: \o/14:28
mvomborzecki: thanks! then I just need to update the test we have to either remodel on classic or to have a kernel snap :)14:29
pedronismvo: #9867, ijohnson was also planning to look at it14:29
mupPR #9867: overlord/devicestate: task for updating boot configs, spread test <Run nested> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/9867>14:29
pedronismvo: Pawel's:  #9842 #985014:30
mupPR #9842: store: switch to v2/assertions api <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9842>14:30
mupPR #9850: store: method for fetching validation set assertion <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <https://github.com/snapcore/snapd/pull/9850>14:30
mupPR snapd#9873 closed: gadget: add new ResolvedContent and populate from LayoutVolume() <UC20> <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9873>15:28
mupPR snapd#9886 opened: gadget: cleanup MountedFilesystem{Writer,Updater} <Run nested> <UC20> <Created by mvo5> <https://github.com/snapcore/snapd/pull/9886>15:48
mupPR snapd#9842 closed: store: switch to v2/assertions api <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9842>17:19
mupPR snapd#9887 opened: seed: add LoadEssentialMeta to seed16 and allow all of its implementations to be called multiple times <Created by pedronis> <https://github.com/snapcore/snapd/pull/9887>17:54
mupPR snapcraft#3433 closed: Allow revoking validation assertions (LP: #1912332) <Created by nessita> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/3433>18:48
=== gurmble is now known as grumble
mupPR snapd#9850 closed: store: method for fetching validation set assertion <Needs Samuele review> <validation-sets :white_check_mark:> <Created by stolowski> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/9850>19:54
=== the-mentor8 is now known as the-mentor
mupPR snapcraft#3434 opened: build providers: clean environment if project directory is changed <Created by cjp256> <https://github.com/snapcore/snapcraft/pull/3434>21:19

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