!VhzbGHamdfMiGxpXyg:robins.wtf

NixOS LXC

33 Members
lxc, lxd, incus discussions related to NixOS14 Servers

Load older messages


SenderMessageTime
20 Feb 2024
@hexa:lossy.networkhexaelvishjerrico maybe16:49:18
@adam:robins.wtfadamcstephens
In reply to @mkg20001:mkg20001.io
https://github.com/NixOS/nixpkgs/issues/287097 does anyone have any idea about this?
i've not dug into it myself. is it a problem with how /sbin/init is linked?
16:51:43
@mkg20001:mkg20001.iomkg20001maybe, maybe not. didn't really check much, but /run/current-system was missing, so it could be that we'd need to link another script when the option is set16:53:49
@mkg20001:mkg20001.iomkg20001to fix activation being ran16:54:06
@adam:robins.wtfadamcstephensit breaks /run/current-system? that sounds bad. i thought switch-to-configuration managed that16:56:10
@mkg20001:mkg20001.iomkg20001so I found the issue, it's fixed in https://github.com/NixOS/nixpkgs/pull/29028822:15:39
@adam:robins.wtfadamcstephens
In reply to @mkg20001:mkg20001.io
so I found the issue, it's fixed in https://github.com/NixOS/nixpkgs/pull/290288
Would you be willing to write test cases for both?
22:23:00
@mkg20001:mkg20001.iomkg20001
In reply to @adam:robins.wtf
Would you be willing to write test cases for both?
building and running an image with initrd.systemd.enable is enough? then ill add that
22:27:40
@adam:robins.wtfadamcstephens Yeah. Though I’m wondering if we should be explicit in the legacy case as there’s talk of deprecating it 22:29:21
@mkg20001:mkg20001.iomkg20001once nixos as a whole switches we should simply follow i think22:37:14
@adam:robins.wtfadamcstephens Then for now just another image with it enabled is good enough  22:41:47
@adam:robins.wtfadamcstephens * Then for now just another image with systemd init enabled is good enough  22:42:01
@mkg20001:mkg20001.iomkg20001added test22:44:47
23 Feb 2024
@adam:robins.wtfadamcstephenshttps://github.com/NixOS/nixpkgs/pull/29057001:53:41
@adam:robins.wtfadamcstephensAny thoughts on forcing people to use nftables with incus?19:15:30
@hexa:lossy.networkhexaeven the nixos firewall uses nft these adys19:19:19
@hexa:lossy.networkhexa * even the nixos firewall uses nft these days19:19:21
@hexa:lossy.networkhexaand what does forcing even mean19:19:30
@hexa:lossy.networkhexa everyone can lib.mkForce whatever they want 19:19:43
@adam:robins.wtfadamcstephens (networking.firewall.enable && !networking.nftables.enable) && virtualisation.incus.enable 19:25:38
@adam:robins.wtfadamcstephensthrow an error if that evaluates to true19:25:52
@adam:robins.wtfadamcstephens * networking.firewall.enable && !networking.nftables.enable && virtualisation.incus.enable 19:25:58
@adam:robins.wtfadamcstephensis that too aggressive of a change? :)19:28:49
@hexa:lossy.networkhexawhat would be the motivation?19:30:39
@adam:robins.wtfadamcstephensincus manages its own firewall rules, and it's easier to support a single integration19:39:05
@adam:robins.wtfadamcstephensthe motivation comes from at least one user who switching to nftables just fixed the issue https://github.com/lxc/incus/issues/52519:39:38
@adam:robins.wtfadamcstephensspecifically this comment: https://github.com/lxc/incus/issues/525#issuecomment-196186206019:40:22
@adam:robins.wtfadamcstephens(there are two users for some reason in this issue)19:40:30
@hexa:lossy.networkhexayeah, then just assert with a link to documentation, why this has become necessary maybe19:40:35
@adam:robins.wtfadamcstephensif you're curious, here's an nftable dump from my test machine https://paste.sr.ht/~adamcstephens/28d559730979803b0b1372e200d1013c1a783a4f19:42:19

Show newer messages


Back to Room ListRoom Version: 10