| 29 Jun 2025 |
emily | hexa (clat on linux when): NM package has a hard openconnect dependency even though NM itself doesn't | 15:13:05 |
emily | because
- path = nm_utils_file_search_in_paths("openconnect",
- "/usr/sbin/openconnect",
- DEFAULT_PATHS,
- G_FILE_TEST_IS_EXECUTABLE,
- NULL,
- NULL,
- error);
- if (!path)
- return FALSE;
+ path = "@openconnect@/bin/openconnect";
| 15:13:16 |
hexa | lovely | 15:13:32 |
emily | it should just look it up in $PATH | 15:13:40 |
emily | and we can add things to the service's $PATH | 15:13:44 |
emily | like normal | 15:13:46 |
emily | it's possible nm_utils_file_search_in_paths even does hat, I don't know what DEFAULT_PATHS is | 15:13:56 |
emily | we're definitely sure we want this instead of one option to turn on wired DHCP for networkd right? :P | 15:14:20 |
hexa | yes, we're sure | 15:15:02 |
hexa | our networkmanager packaging being bad doesn't change that 😄 | 15:15:09 |
emily | DEFAULT_PATHS is specific to this file and separate from the global NM_PATHS_DEFAULT | 15:15:17 |
K900 | In reply to @emilazy:matrix.org we're definitely sure we want this instead of one option to turn on wired DHCP for networkd right? :P Yeah especially for wireless | 15:15:20 |
emily | very cool | 15:15:25 |
emily | and it does not check actual $PATH | 15:15:45 |
hexa | do we really need modemmanager on the installer iso though? | 15:15:51 |
@saiko:knifepoint.net | why not just iwd for wireless? | 15:16:01 |
hexa | to pull multiple gigabytes of outputs from the cache | 15:16:13 |
hexa | that sounds a bit unrealistic | 15:16:17 |
hexa | crappy eap support | 15:16:24 |
@saiko:knifepoint.net | ahh.. :( | 15:16:32 |
emily | I'm not seeing gigabytes | 15:16:44 |
hexa | iirc the story is … drop your eap profiles into /var/lib/iwd somewhere | 15:16:51 |
hexa | and you cannot configure them interactively from networkmanager | 15:16:58 |
hexa | you know, the profiles, that your infrastructure administrator hands to you | 15:17:12 |
emily | ModemManager closure is 237.98 MiB which is mostly like: systemd, glibc, etc. | 15:17:19 |
emily | it doesn't seem to me like it should be adding much at all to NM closure if not for all this weird busted stuff | 15:17:33 |
emily | that hardcoded OpenConnect path is what makes NM huge | 15:17:41 |
hexa | otherwise I would gladly use it on the iso, given that it is quite a bit smaller than wpa_supplicant | 15:17:42 |
emily | ✓ modemmanager-1.22.0 237.98 MiB (22.67 MiB) | 15:17:57 |
emily | so it adds 22.67 MiB to the NM closure assuming openconnect is there | 15:18:13 |