[02:34] zyga: looks like we'll need to update the opensuse package again, stopped working [02:35] zyga: "cannot perform readlinkat() on the mount namespace file descriptor of the init process: Permission denied" [05:04] morning [05:49] PR snapd#5691 closed: spdx: allow Other-Open-Source [05:50] PR snapd#5728 opened: spdx: remove "Other Open Source" from the support licenses [05:55] zyga: hey, what do you think, when can we remove the experimental flag from layouts? [06:00] PR snapd#5729 opened: many: rename ClientOpts to ClientOptions [06:06] mvo: hi, is /etc/hostname not writable in core 18 devices? https://github.com/snapcore/snapd/pull/5722 hostnamectl appears to be failing with 'read only filesystem' [06:06] PR #5722: tests: test for the hostname interface [06:07] mvo: iirc layouts still have that problem with trespassing to the host's filesystem [06:09] mborzecki: hm, etc/hostname should be a symlink on core18 to etc/writable/hostname, let me double check that [06:11] mborzecki: yeah, its a symlink [06:12] mborzecki: so maybe thats the problem? that the apparmor policy does not have the symlink? [06:12] (target) [06:13] mvo: hmm, but it failed with 'read only fs', i'd guess EROFS appeared somewhere there, with apparmort that'd be more like permission denied [06:13] mvo: wonder if hostnamectl truncates /etc/hostname or writes a new file and does a rename [06:15] Good morning [06:16] zyga: hey [06:17] I’ll start soon [06:17] mborzecki: oh that rings a bell [06:17] Kids had blood test today [06:17] mborzecki: let me quickly check [06:17] And needed my “moral support” [06:17] pedronis: is 5699 something you want to review ? or do you think its fine? [06:18] mborzecki: this sounds a lot like https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1778936 [06:18] mvo: after trespassing bug is fixed [06:18] zyga: aha, ok [06:18] Then they are ready [06:18] Bug #1778936: please re-add Support-system-image-read-only-etc.patch [06:19] mup: heh, yes [06:19] mborzecki: I apologize, but I'm pretty strict about only responding to known commands. [06:19] mvo: heh, yes :) [06:19] I’ll work with Maciej on this as it was harder to come up with precise logic than I wished last time [06:21] mborzecki: I get the feeling I will have to do this SRU myself :/ [06:21] mborzecki: anyway [06:21] mborzecki: I will put it on my list [06:22] PR snapd#5730 opened: devicestate: support getting (http) proxy from core config [06:23] PR snapd#5704 closed: snap: add new type "TypeSnapd" and attach to the snapd snap [06:24] PR snapd#5728 closed: spdx: remove "Other Open Source" from the support licenses [06:25] mborzecki: want to have a quick look at 5719 again? I had to change it slightly after gustavos review but should be fine (all tests still happy and errors better) [06:25] mvo: already +1'ed it [06:25] oh, w8, that's the other one :) [06:32] PR snapd#5710 closed: cmd: support re-exec into the "snapd" snap [06:41] PR snapd#5709 closed: configcore,snapstate: add new core.experimental.snapd-snap option [06:44] PR core#93 closed: hooks: unwind /etc/alternatives [06:44] Back [06:58] mvo: re [06:58] mvo: I have that dragon on my desk if you need any support [06:58] mvo: it's not powered on but I can bring all the misc bits and set it up if you need me to === pstolowski|afk is now known as pstolowski [07:16] mornings [07:20] pstolowski: hey [07:21] zyga: hi, opensuse package is broken again, something to do with apparmor, would an update fix it? If so I'll send you a PR. [07:21] Caelum: yes, I have the build ready, just need to pull the trigger [07:21] Caelum: can you review & test? [07:21] zyga: yeah totally [07:22] ok [07:22] hold on, let me commit [07:22] zyga: I just send an update to the etc/alternatives stuff in snapcore/core18. not urgent but you may be interessted [07:22] PR core18#64 opened: hooks: improve /etc/alternatives unwinding [07:22] ack [07:23] zyga: also at some point I want to talk about reviving the gentoo overlay [07:24] sure [07:24] I have nothing for that so please go ahead [07:25] PR core#94 opened: hooks: improve /etc/alternatives unwinding [07:26] btrfs rebalance ... [07:33] ha [07:33] mvo: I found a bug in our systemd unit [07:33] system key refresh takes long eough [07:33] long enough [07:33] that systemd restarts us [07:34] we need to poke systemd using sd-notify during the security setup as it can take a lot of time [07:36] I guess this will continue while balancing is in progress as the system is much slower than usual [07:44] it's good to cron that shit [07:44] mine is @daily [07:44] zyga: well highlight me if you want me to do anything [07:45] Caelum: sure, I'll send my build as soon as btrfs stops my system from crawling [07:45] Caelum: I want to branch it so that it can be reviewed [07:46] awesome [07:56] ok I/O aside I managed to branch it [08:02] mvo: left you a coment in https://github.com/snapcore/snapd/pull/5729 btw. the title says it's only messing with ClientOptions, but it's adding proxy too [08:03] PR #5729: many: rename ClientOpts to ClientOptions [08:03] https://build.opensuse.org/package/show/home:zyga:branches:system:snappy/snapd [08:06] Good mornings! [08:12] moin moin [08:12] hey guys [08:12] good morning [08:12] :) [08:12] o/ [08:12] summer is supposedly back this week (just not yet) [08:17] mvo: did you see the last failure on #5722? is /etc/hostname writable on core 18? [08:18] PR #5722: tests: test for the hostname interface [08:26] Chipaca: I did not, but i suspect its https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1778936 [08:26] Bug #1778936: please re-add Support-system-image-read-only-etc.patch [08:26] mvo: ah [08:26] zyga: nice catch [08:27] mborzecki: 5729 is build on top of the other one, I hope I added it to the description [08:27] mborzecki: I think I could split them maybe thats clearer [08:27] mvo: it's ok with me [08:28] mborzecki: otoh the proxy one can land, I was just waiting to double check with pedronis if he wants to have a look at the proxy thing because it does some potentially dangerous state interactions (it needs to lock state to get the proxy) [08:28] mborzecki: ok [08:28] Chipaca: and WELCOME BACK [08:29] mvo: :-) [08:29] mvo: looking forward to all the review feedback that'll be waiting for me [08:32] zyga: were you able to get your lab back up? I could use a darwin shell about now [08:32] Chipaca: almost, I can set you up in 10 min [08:32] zyga: no rush; just let me know [08:35] almost done [08:36] mvo: hi [08:37] pedronis: good morning! just wanted to double check if 5699 is something you want to have a look at :) [08:38] mvo: I'm a bit worried that we are not super consistent about releasing the lock when doing store things [08:38] pedronis: just to clarify you don't have to, but it might be interessting because of the proxy helper and state lock interplay [08:38] we do for some main things [08:38] pedronis: yeah, this PR would enforce that we are [08:38] mvo: enforce ? [08:38] pedronis: well, it will crash or hang if we don't [08:38] wouldn't call that enforce [08:39] Chipaca: check check? [08:39] pedronis: ok, bad wording then :/ I mean we will need it [08:40] zyga: check what? [08:40] ah [08:40] Chipaca: did you see my private msg? [08:40] mvo: yea, re-double checking [08:40] zyga: now yes [08:41] Chipaca: there's golang and gcc [08:41] Chipaca: there should be git and other things but let me know if you need more [08:41] Chipaca: you are on bare metal [08:42] zyga: woo, thanks [08:42] mbuahaha [08:42] enjoy :) === chihchun is now known as chihchun_afk [08:53] mvo: so rechecking most of the relevant packages have tests with a fakeStore that uses a pokeStateLock helper to check for that, daemon doesn't do that though because usually it doesn't hold the lock for long and also there's no clear state in many tests, but bit delicate, maybe you want to look there what we can do [08:56] pedronis: so it sounds like I should add tests in daemon that poleStateLock? [08:57] mvo: add pokeStateLock in daemon test fake store bits, yes, it seems by definition there is always a state if we use those, because we had to use ReplaceStore anyway [08:59] pedronis: great, I will do that, thank you [09:12] * zyga wonders what the error is in https://build.opensuse.org/build/home:zyga:branches:system:snappy/openSUSE_Tumbleweed/i586/snapd/_log [09:13] log files from suse are horrible :/ [09:13] hm i guess locking the state for the whole duration of doMountSnap() is a bad idea? [09:13] zyga: can you install squashfs-tools? [09:13] Chipaca: not sure, let me try [09:14] zyga: (assuming you're using something like brew) [09:14] no, I try to stay clear of brew [09:14] (or whatever the package mangler on osx is) [09:15] zyga: I'll run it from git (or try to!) [09:15] Chipaca: it doesn't build, hold on [09:15] mksquashfs.c:4404:29: error: use of undeclared identifier 'FNM_EXTMATCH' [09:15] FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) == 0; [09:16] I have a firm deja-vu now [09:16] Chipaca: if you can find me a copy that builds :) [09:16] Chipaca: I suspect someone patched the glibc-specific flag [09:17] I remember now, I was building this on my MacBook [09:17] (remember, the one I had in Netherlands) [09:18] and I had to patch some things for it to build === chihchun_afk is now known as chihchun [09:18] zyga: looks like there's a nixos patch for darwin [09:20] Chipaca: do you have a link or a tree ? [09:20] ideally something we would later on incorporate into our build [09:36] zyga: could you sudo chmod u+s /usr/bin/dtrace [09:37] dtrace? :) [09:37] sure, what do you need it for [09:37] zyga: this is the patch: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/filesystems/squashfs/darwin.patch [09:37] zyga: 'snap pack' failing with 'exit error 1', wondering what all is failing [09:37] shortest path to answer that is to trace it :-) [09:37] then i need to improve the error output [09:37] then, fix it [09:44] Chipaca: are you set now? [09:45] zyga: it works [09:45] ok, good luck [09:45] I should reboot the ssh host as it runs an older kernel [09:45] so let me know when would be a good time for that [09:47] Caelum: hey [09:47] I pushed https://build.opensuse.org/package/show/home:zyga:branches:system:snappy/snapd [09:47] can you please have a look at that [09:47] I cannot understand why the i386 build fails [09:47] (the error log is just ... not saying anything) [09:47] in any case, that is the latest and greatest [09:48] so any feedback you can get on that is appreciated [09:49] Caelum: you need to build the package locally as I didn't publish the build [09:49] I'll grab a coffee and be back soon [09:51] zyga: looking now [09:52] zyga: one reason the build can fail I told you about a couple months ago, there is one time-sensitive test running in parallel [09:55] don't remember which one it was [09:58] Caelum: maybe but I'm not convinced [09:59] this is failing on i386 consistently [09:59] while not failing on amd64 [10:02] oh ok [10:02] I've had a similar thing initially, it would build on i386 but fail on amd64 [10:03] because it needs 32bit support stuff [10:03] but on 32bit system every library is this [10:03] I mean, 32bit [10:04] yup [10:04] there are no logs? [10:05] sure there are [10:05] have a look [10:05] I could not find what failed [10:05] the go build / check wrappers are extremely verbose [10:05] it seems a page full of text flies for every single file [10:06] it thinks the tests failed because of bad exit status but there is no error, that would probably mean a segfault [10:07] is it always failing on i386? [10:07] err i686 I guess [10:08] in the same exact place? [10:09] build is randomly freezing on me downloading packages [10:09] weird [10:10] Caelum: I don't know, what I managed to get is the log file it references [10:10] https://www.irccloud.com/pastebin/SC8Lnihd/ [10:11] zyga: yeah that just runs the tests [10:11] zyga: and then one of them segfaults [10:11] aha, [10:11] I can run tests with "go test ./..." just fine [10:11] on 32 bit? [10:11] but on x86_64 :) [10:11] probably some of the hardening things are breaking [10:16] pedronis: adding pokestate is a bit of a rathole, a lot of tests do not setup the fake store and just rely on that some other test did that. anyway, working on it. good intuition there [10:22] zyga: if you want to do a test on a 32 bit docker image, there are apparently some tricks involved: https://github.com/moby/moby/issues/611 [10:22] I'm using a 32bit chroot [10:23] ah cool [10:26] abuild@tumbleweed:~/go/src/github.com/snapcore/snapd/vendor/github.com/mvo5/libseccomp-golang> go test [10:26] can't load package: package github.com/snapcore/snapd/vendor/github.com/mvo5/libseccomp-golang: build constraints exclude all Go files in /home/abuild/go/src/github.com/snapcore/snapd/vendor/github.com/mvo5/libseccomp-golang [10:26] mvo: ^ that's interesting, I'm trying to understand why this happens [10:26] nothing immediately obvious would cause this [10:27] zyga: that it the upstream libseccomp-golang with a mintor tweak [10:27] zyga: what arch is this? [10:27] mvo: i586 chroot [10:27] zyga: maybe its just missing from libseccomp-golang? [10:27] mvo: the constraints just say +linux [10:28] I'm exploring [10:28] zyga: well, for some reason my build kept freezing on downloading packages, so I was not able to test anything, sorry. Going to be driving for the next 8 hours. If you aren't sure this always happens, you can make a dummy commit to force a rebuild or there is an osc command to force a rebuild too. [10:28] Why does "snap info chromium" say license: unknown, but https://snapcraft.io/chromium shows lots of licenses? [10:28] Caelum: I tried that [10:28] zyga: ah great [10:28] popey: because meta/snap.yaml doesn't say license: [10:29] ah [10:29] ok, thanks! :D [10:30] It's a bit odd that it behaves differently if installed or not [10:31] yes [10:31] because once set of meta-data is from the store and the other is from the package [10:31] yes, that's bizarro [10:33] # runtime/cgo [10:33] cc1: sorry, unimplemented: 64-bit mode not compiled in [10:33] mvo: tadam [10:33] that's golang 1.10 i386 [10:33] being confused about something apparently [10:33] this is a i386 chroot [10:33] (well i586) [10:33] this is after unsetting CGO_ENABLED=0 [10:33] zyga: yeah, I was suspecting that it can't identify its architcture [10:34] PR snapd#5731 opened: daemon: remove TestSnapsInfoUnknownSource [10:34] Chipaca: ^-- might be interessting for you, would love your feedback [10:38] cjwatson: ping [10:38] zyga: and there is some kind of problem with 'osc build' that I saw in another one of my projects that I'm getting now: file /usr/lib/rpm/fileattrs/kernel.attr from install of rpm-config-SUSE-0-1.1.noarch conflicts with file from package rpm-4.14.1-3.1.x86_64 [10:39] zyga: not related to snapd [10:39] I can build / test it in a chroot after setting GOARCH=386 [10:39] popey: license should be per snap revision (and not editable via web), but the store hasn't been able to implement it yet [10:40] zyga: it also runs: file /usr/lib/rpm/fileattrs/kernel.attr from install of rpm-config-SUSE-0-1.1.noarch conflicts with file from package rpm-4.14.1-3.1.x86_64 [10:40] err [10:40] mvo: what does 'go env' print? [10:40] /usr/bin/make -O -j2 -C cmd check [10:40] Chipaca: you mean zyga right? [10:41] probably, yes [10:41] go env https://www.irccloud.com/pastebin/YsN4UGgW/ [10:41] though this is tweaked in an interactive shell [10:41] vanilla build doesn't show me anything useful [10:41] zyga: not sure what you're trying to do, but why are you trying to do it with gccgo? [10:42] zyga: I mean, did you do only "go test" or "make check" too [10:42] this is for snap-seccomp [10:43] lots of red [10:43] https://build.opensuse.org/package/show/home:zyga:branches:system:snappy/snapd [10:43] PR snapd#5732 opened: daemon: add pokeTest helper to the daemon tests [10:43] I'm just going to say this, whoever came up with the wrappers for golang in opensuse needs to do a reality check, it's the least useful wrapper I saw [10:43] and this includes the previous ruby wrapper [10:43] pedronis: I added the tests to a new PR and also updated the 5699 - should I add more before merging 5699? [10:44] I'm giving up on this [10:46] zyga: so this happens on all architectures now [10:46] niemeyer: hi [10:47] zyga: ok well, I'll take a look over the next few days [10:47] ok [10:51] zyga: driving home from LA to san francisco now, take care [10:51] safe ride home [10:57] cjwatson: Heya [10:57] cjwatson: How do we kick spammers and their comments out of Launchpad? [10:57] cjwatson: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1575053/comments/100 [10:57] Bug #1575053: Please move the "$HOME/snap" directory to a less obtrusive location [11:01] niemeyer: done [11:01] (https://answers.launchpad.net/launchpad/+addquestion is our preferred way to report spam) [11:03] cjwatson: Thanks! [11:03] cjwatson: Will use that next time [11:03] thanks for the report, we obviously try to boot spammers out ASAP to minimise damage [11:05] Wimpress, hey, do you know how can make snapcraft generate a manifest? [11:30] ok [11:30] small progress [11:30] finally feels better than packaging [11:42] hi does anyone know what's the difference in terms of security and user privacy when comparing snaps, flatpaks and appimages? [11:42] baimafeima: it's complicated [11:42] baimafeima: except maybe appimages that by default have no sandbox at all [11:43] zyga, mhm so appimages could theoretically gather a lot of data as they are not sandboxed ... [11:43] if I were to install a malicious snap or flatpak or appimage, through which could my system most easily be exploited? [11:44] baimafeima: as appimage is not sandboxed in any way the answer is obvious [11:45] zyga, what about snaps vs flatpaks? pros and cons? [11:45] it's complicated [11:46] zyga, let's say I have wayland and on the operating system side all the latest versions [11:46] it's still very complicated [11:46] it's not something that can be accurately described in a few moments [11:48] zyga, does having reproducible builds apply to both? [11:48] no, to neither [11:50] zyga, I know snaps have a broader use case, IoT and such and distribution is centralized, whereas everyone can host their own flatpaks and it's more desktop-focused... [11:50] baimafeima: perhaps it's not common knowledge but both systems cannot care less about how the package is built [11:50] so any package can be built in any way really [11:51] so some packages can be built with all the hardening and reproducible build tweaks [11:51] while others can just contain a debug build from someone's lap [11:52] zyga, so you basically suggest a snap is not a snap or a flatpak isn't a flatpak and I would still have to trust the developer on the quality of the packaging? So there are going to be hardened snaps and those that are not? [11:53] baimafeima: with both systems you trust on whoever is making the package, yes [11:53] is the reason to keep the entry barrier into snap or flatpak development low? or is there a way to enforce higher minimum standards below which a snap simply won't run? [11:53] while many packages can be of good quality there is nothing that prevents anyone from making a bad quality package [11:54] zyga, I see, then I would say a centralized distribution system like with snaps could have an eye on quality control whereas that wouldn't be easily possible with flatpaks? [11:54] well [11:54] what's the goal? [11:54] linux packaging is hard [11:55] linux market share is pretty much close to zero [11:55] using the right helpers people will get (over time) better and better builds [11:55] but you have to recognise that packaging is very hard as it is already [11:55] with each distribution having complex policy [11:55] and widely different levels of quality [11:55] the point of snaps and flatpak is to make it better for developers and users [11:56] that includes making it easier [11:56] zyga, mhm I see, which distribution do you use to build and develop? [11:56] we have plenty of bad outdated, buggy apps already [11:56] and the existing policy system does not change that [11:57] you can link the buggy and broken and old package with hardening options and use reproducible builds while you are at it [11:57] but because it's hard and complex the upstreams cannot care less about that (I'm generalising obviously) and if they ever test something it is whatever they are running (probably not linux because of statistics) [11:57] so in the end, we are hoping to make the process less complex so that more people have a better time at making apps [11:57] and at using apps [11:58] baimafeima: I use multiple operating systems [11:58] zyga, interesting [12:00] zyga, I remember (but cannot find the github issue) that there was a discussion regarding on-the-fly updates and whether there is a possibility for end-users to prevent a snap from updating itself and how this can be integrated into software centers with fine-grained control [12:00] baimafeima: I wonder if statistically upstream developers still use compiled languages as a majority so reproducible builds and hardening probably apply a level below where people generally tend to code now [12:02] baimafeima: there's a thread about that on the snapcraft forum I believe [12:03] zyga, ah yeah I think it was on the forum, not sure whether it's been resolved by now [12:03] baimafeima: it depends by what you mean, there's no universal agreement on what should happen [12:03] zyga, it's a pity that there's not more commitment to reproducible builds === pstolowski is now known as pstolowski|lunch [12:04] baimafeima: it's a pity there's no more commitment to {useful APIs,documentation,stability,artwork,localisation,business friendliness} [12:04] zyga, I think most end-users won't care but some care about the degree of control through the auto-update mechanism [12:04] there are many dragons to fight [12:07] sergiusens, , hey, do you know how can make snapcraft generate a manifest? [12:09] zyga, thanks for the infos, I'll slowly read my way into this [12:11] baimafeima: if you have specific questions I will be happy to answer them [12:14] zyga, thanks [12:17] brb [12:33] re === pstolowski|lunch is now known as pstolowski [12:50] baimafeima, reproducible builds aren't particularly valuable to most people [12:51] they've made that choice when they decided in their ecosystems that they attempt fetching from a VCS (nodejs, php, golang, etc.) rather than having releases upload a tarball (python, rust, c/c++, etc.) [13:10] mborzecki, mvo: /etc/writable/hostname is *not* writable in interfaces/builtin/hostname_control.go [13:11] 3085 1000000 20 0 70896 65316 38896 R 100.0 8.1 2:34.73 unattended+ [13:11] that's weird [13:11] that's on a dragon board running core [13:12] ah, that's inside a container [13:39] PR snapcraft#2227 closed: lxd: wait for cloud-init [13:42] PR snapcraft#2228 opened: storeapi: handle releasing to curly braced branch [13:54] hmm ... when i "snap stop" a service from a snap and the snap gets refreshed, the service gets automatically started again [13:54] is that expected (not by me for sure, but is it expected y the implementation ?) [13:55] *by the === chihchun is now known as chihchun_afk [14:14] ogra: yes [14:14] ogra: or, no [14:14] ogra: … maybe? [14:14] ogra: 'snap stop' does not imply 'snap disable' [14:14] ogra: i mean, snap stop --disable [14:14] which is different from snap disable, of course [14:22] mvo: btw assertions not only have revisions, but also format (an increasing version of the format), in theory we could also play with that (so far we have incremented it only for snap-declaration) [14:22] pedronis: oh, interessting idea [14:24] mvo: snapd always sends the max-format it supports when asking for assertions [14:25] anyway another thing [14:26] * mvo nods [14:30] Chipaca, well, can i disable single services and not the whole snap ? i thought disable completely turns off the whole set [14:32] mvo: to be clear it's per assertion type, is not global [14:37] ogra: 'snap disable' is snap-level; 'snap stop --disable' is service-level [14:41] pedronis: ta [14:43] Chipaca, aaah !! thanks [14:47] re, hasty day, quick lunch done [15:17] abeato: hey, sorry, I saw your question pop-up but was super focused on code reviews. So you want SNAPCRAFT_BUILD_INFO (also reminded under recording here https://github.com/snapcore/snapcraft/releases/tag/2.43) [15:18] sergiusens, ok, so that is just an env var, right? is it considered experimental still? [15:19] abeato: no, not experimental, it is being used by USN already [15:19] sergiusens, got it, thanks [15:31] PR snapd#5733 opened: snap/squashfs: improve error message from Build on mksquashfs failure [15:36] PR core#94 closed: hooks: improve /etc/alternatives unwinding [15:36] fwiw, I'm looking at the core16 degraded boot failure right now [15:43] mvo: flashing dragon now [15:43] mvo: I'm done with meetings today [15:49] sergiusens, can you force creation of the manifest in snapcraft.yaml file? [15:54] abeato: we have no language for that. Maybe create a forum post requesting it. [15:55] sergiusens, ok [15:55] abeato: fwiw, I do agree we need a way to opt-in/opt-out [15:55] but it is one of those where agreeing on the syntax for it is the larger discussion:-) [15:55] haha [15:55] ok [16:02] sergiusens, https://forum.snapcraft.io/t/no-way-to-create-manifest-from-snapcraft-yaml/7076 [16:09] zyga, hey [16:09] https://paste.ubuntu.com/p/y2p6byKthP/ [16:09] I saw this error [16:09] right [16:10] I don't know why it happens [16:10] I saw the pastebin before [16:10] zyga, ok :( [16:10] there's clearly a bug but we don't have a firm understanding if this is a bug in systemd or in the kernel [16:11] or in some intermediate libraries [16:12] zyga, nice, I'll continue researching [16:12] there's a thread that has some information about this [16:13] if you find out anything please add it there [16:18] mvo, so you went and fixed something for which you already had a universal pam script for without fixing the issue we hit with cloud-sdks shipped as snaps =) [16:18] mvo, can we talk about https://github.com/snapcore/snapd/pull/5226 again? i posted the comment there. [16:18] PR #5226: data: add systemd user environment generator [16:18] mvo, is the test case still not clear which environment is still wrong and still does not contain /snap/bin [16:23] mvo: booting your image now [16:23] I had some SD card woes [16:23] (apparently that silly lock switch does something) [16:24] it errors with: /usr/share/subiquity/console-conf-wrapper: line 13: snap: command not found [16:24] I'm in interactive uboot prompt [16:24] mvo: just let me know what you need when you're back [16:25] mvo: I applied: env set snappy_cmdline net.ifnames=0 init=/lib/systemd/systemd ro panic=-1 fixrtc systemd.debug-shell=1 [16:37] zyga: hey, got a moment for quick HO? [16:40] * cachio lunch & doctor [16:57] nice sergiusens: on cloud-init status --wait. :) per the above lxd: wait branch. [16:58] glad to see consumers of that blocking wait [16:59] xnox: I'm checking your comment and will reply [16:59] mvo, thanks [16:59] zyga: yeah, that might not be sufficient to get a shell [17:01] xnox: aha, so we need a *system* env generator. is there such a thing? pardon my ignorance on this [17:03] xnox: anyway, I will investigate [17:04] mvo, well the generator is that. [17:04] mvo, we already had user thing already anyway === pstolowski is now known as pstolowski|afk [17:04] mvo, via the legacy script that we did [17:04] xnox: ok [17:04] xnox: so we ship a systemd system env generator but its not picked up, that is the issue, correct? [17:04] mvo, no you never shipped it [17:05] mvo, you proposed it and then did not merge.... [17:05] mvo, and decided that you need environment.d snippet and that's it.... but you didn't need that one at all [17:05] cause you already had the pam.d thing already (the shell script thing) [17:05] mvo, maybe we need a hangout? [17:05] blackboxsw: heh, I wish I'd known about that sooner, I had implemented my own poller looking at the cloud init status file [17:06] mvo, so the /etc/profile.d/apps-bin-path.sh & /usr/lib/environment.d/990-snapd.conf are redundand. [17:06] xnox: oh, now I remember, sorry, it was a while. ok - I think I know what is going on, I missed the difference between the two [17:06] xnox: the difference between environment.d and a generator [17:07] mvo, well profile.d is used by pammy / more traditional things; and the latter one is used by recentish systemd things for /logged in users/ [17:07] sergiusens: mea cupla. /me needs to figure out how to better advertise nice CLI features... I dump updates in here https://cloudinit.readthedocs.io/en/latest/topics/capabilities.html#cli-subcommand-details, but I'll make sure to rope someone snappy in on next round of changes that could affect folks. [17:07] mvo, the /usr/lib/environment.d/ is read by /usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator for the logged in users. [17:08] xnox: thanks, I know now what to do - sorry for this [17:08] xnox: I will resurrect the system env generator [17:08] mvo, that's ok. it is confusing, and most things are named identical. [17:08] or very similar [17:09] mvo, dammit can't find the docs now. [17:09] blackboxsw: no worries, I only found out about that status file by a google/ddg search that led to a bug report from 5 years ago iirc where scott mentioned he'd implement it; look at the code a bit, saw it was there for the series we needed it and just went ahead and did what needed doing [17:10] documentation is hard :-) [17:10] xnox: no worries, I will resurrect the PR tomorrow [17:10] xnox: thanks for the heads up! [17:10] mvo, cool thanks! [17:10] mvo, it would be nice to have a direction.d thing for system envrionemnt too, but there doesn't appear to be one, hence the need of a executable generator for the system one. [17:11] (systemd doesn't pre-ship one, the way it does a user generator) [17:13] sergiusens: as a heads up, I know snappy also looks at instance-data.json we'll shortly have a 'cloud-init query' subcommand which allows one to query the struct without having to parse the data file directly. Some of those query changes will also surface improved 'region' detection on a couple of clouds. I'll add you as a reviewer when that branch is up, just for a glance to see if it's of interest. [17:15] blackboxsw: heh, well the person you want to reach out to is mvo; I personally work on only snapcraft these days [17:15] +1 thx [17:15] my snapd days ended almost 3 years ago :-) [18:01] pstolowski|afk: now yes [18:01] mvo: I can tinker perhaps enough to get a Getty [18:09] zyga: good luck [18:54] * zyga just states for the record that we have some idea why the dragon image is not working [19:22] PR snapd#5734 opened: tests: remove /etc/alternatives from dirs-not-shared-with-host [19:56] * zyga EODs === gurmble is now known as grumble [20:09] * zyga likes https://commit.style/ [21:43] PR snapcraft#2226 closed: templates: reimplement templates as python classes