**** BEGIN LOGGING AT Tue Jan 26 02:59:57 2021 Jan 26 04:29:52 >KGB-1< https://tests.reproducible-builds.org/openwrt/openwrt_mediatek.html has been updated. (100.0% images and 98.3% packages reproducible in our current test framework.) Jan 26 04:40:49 mangix: I think you mdns patch is merged tomorrow Jan 26 06:50:24 aparcar[m]: ok Jan 26 08:09:46 nbd: ping Jan 26 08:21:48 aparcar[m]: pong Jan 26 08:23:34 nbd: mwarning1 and me trying to add initramfs files to the profiles.json file. The current state is here: https://github.com/mwarning/openwrt/commit/053a726660deb38c5d6da57bf75607fc3cf70c6d I don't understand how the device variables are somewhat delayed exported. Would it be possible to make variables like DEFAULT_PACKAGES etc directly accessible? Jan 26 08:26:44 i will look into it Jan 26 08:26:45 brb Jan 26 08:44:32 ttyd with selinux sandbox works pretty nice out of the box (its not targeted by default): https://www.youtube.com/watch?v=iRHGtnPKBtA Jan 26 08:52:06 aparcar[m]: i don't think DEFAULT_PACKAGES is easily accessible from that context. you can work around it by getting the package list from opkg Jan 26 08:52:35 isn't it possible to just export the profile vars? Jan 26 08:52:42 because we have the profile name anyway? Jan 26 08:53:39 the initramfs image doesn't have the per-device packages though Jan 26 08:53:48 so not sure why you would want to add them to the initramfs json Jan 26 08:58:34 brb sorry Jan 26 09:32:40 nbd: so we have the profile_id available. isn't that enough to export the specific variables? Jan 26 09:33:13 https://github.com/mwarning/openwrt/blob/053a726660deb38c5d6da57bf75607fc3cf70c6d/include/image.mk#L555 Jan 26 09:33:26 isn't this line used to export the variables? Jan 26 10:05:10 nbd: I'm off for today, please ping me if you have an idea how to make these variables available. the other option would be to do quite some python changes to stuff things together with seem like a terrible workaround Jan 26 10:09:25 mangix: which messenger are you using now? thinking about replacing the matrix client... Jan 26 10:10:28 aparcar: plenty alternative matrix-clients out there ;) Jan 26 10:46:57 aparcar[m]: IRC? I use a quassel docker container on my VM. Jan 26 10:47:57 I used to use irssi with screen. Jan 26 11:00:22 What do you think about the symlink added here: https://patchwork.ozlabs.org/project/openwrt/patch/20201215093531.1763475-4-a.heider@gmail.com/ ? Jan 26 11:00:46 symlink to ../ltq-vdsl-app/src in package/network/config/ltq-adsl-app/src Jan 26 11:20:25 What was that? Jan 26 14:03:08 Are there any good way to remove a firewall rule by name? I feel like removing a firewall rule by id (i.e. uci delete firewall.@rule[X]) is prone to racing conditions errors Jan 26 14:18:17 barhom: you can name your rules. I don't know if uci takes them up, but ... Jan 26 14:18:38 Yeh, I can name them. But I can't delete a rule by name Jan 26 14:18:48 Yes you can! Jan 26 14:19:29 you can uci show them by name. I don't mean the e.g. firewall.@rule[x].name. Jan 26 14:20:30 Maybe, I haven't found the syntax if so Jan 26 14:20:37 I mean the firewall.$name. you can name them by saying e.g. config rule $name\n\t${etc} Jan 26 14:21:14 Here is an example, firewall.@rule[20].name='Passthrough-port-995' Jan 26 14:21:16 then you get an uci node like firewall.$name=rule, firewall.$name.name='whatever option you set for name' Jan 26 14:21:39 I can't access that rule with "uci show firewall.Passthrough-port-995" Jan 26 14:23:01 no, not the firewall.$name.name -- you can directly name nodes. Jan 26 14:23:24 ah yes Jan 26 14:23:53 now how you do that with uci I don't know off the top of my head Jan 26 14:24:30 ok, I understand what you mean. I'll try it Jan 26 14:24:39 thanks Jan 26 14:25:06 It also won't cause race conditions, since the order doesn't change -- just confirmed that :) Jan 26 14:25:42 (if you name them like that) - that is, a node doesn't stop counting for the index just because you name it. Jan 26 14:29:40 OK, found it. The syntax (from uci help) is: Jan 26 14:29:43 rename .
[.