| 21 Apr 2023 |
flokli | Wonder when it's time to reboot that box with initrd networkd and see if it comes back up ;-) | 17:04:30 |
@elvishjerricco:matrix.org | Anyone have a better idea on how to have the initrd networkd options marked as shallow? I'm doing this ugly thing:
${if shallow then "visible" else null} = "shallow";
https://github.com/NixOS/nixpkgs/pull/226237/commits/67c58d4bfd00afd4eddbd854017ec204b9c49282
| 17:41:39 |
@janne.hess:helsinki-systems.de | I absolutely love this feature | 17:41:58 |
| 22 Apr 2023 |
@aktaboot:tchncs.de | Any tips on how/where to start looking to understand what the different Stages are doing ? should I just directly look at the code, or are there some other resources 🤔 | 10:13:17 |
K900 | You can see what units are included in the systemd stage 1 | 10:17:57 |
K900 | And that should tell you most of the things it does really | 10:18:04 |
K900 | Which is not a lot of things | 10:18:07 |
@aktaboot:tchncs.de | In reply to @k900:0upti.me You can see what units are included in the systemd stage 1 how do I do that ? | 10:22:42 |
K900 | https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/systemd/initrd.nix | 10:23:04 |
@aktaboot:tchncs.de | oh, thanks | 10:23:38 |
| oddlama joined the room. | 12:36:17 |
oddlama | Has anyone tried the stage1 systemd with ZFS yet? There might be some necessary script conversions ahead | 12:37:32 |
@hexa:lossy.network | my laptop uses it | 12:37:56 |
@hexa:lossy.network | with impermanence even | 12:38:03 |
oddlama | oh, then I must have missed some option in my config that defines boot.initrd.postDeviceCommands | 12:38:46 |
@lily:lily.flowers | The ZFS nixos module enables it. Hold on let me link github | 12:38:59 |
@lily:lily.flowers | It needs to be updated after those assertions were added | 12:39:05 |
@lily:lily.flowers | https://github.com/NixOS/nixpkgs/pull/226237#issuecomment-1518633144 | 12:39:30 |
@aktaboot:tchncs.de | is it at this stage that the luks disks get decrypted ? | 12:39:44 |
@aktaboot:tchncs.de | I guess so | 12:40:02 |
oddlama | In reply to @lily:lily.flowers https://github.com/NixOS/nixpkgs/pull/226237#issuecomment-1518633144 Thanks that's exactly what I'm running into. | 12:40:05 |
oddlama | Guess I'll have to look at that later today | 12:40:49 |
@lily:lily.flowers | In reply to @aktaboot:tchncs.de is it at this stage that the luks disks get decrypted ? If the disk is neededForBoot (which is any disk to get /, /nix, /nix/store by default iirc) | 12:41:35 |
@aktaboot:tchncs.de | oh, I set it up directly with initrd.luks.devices | 12:42:55 |
@aktaboot:tchncs.de | * oh, I set it up directly with bott.initrd.luks.devices | 12:43:02 |
@lily:lily.flowers | In reply to @aktaboot:tchncs.de oh, I set it up directly with bott.initrd.luks.devices Oh oops yeah, that's right. The luks stuff happens at a higher level than filesystems (I should maybe go make coffee this morning...) | 12:43:58 |
@aktaboot:tchncs.de | so systemd in the initrd is still experimental, or fairly stable at this point ? Also what major benefits/features does it bring ? | 12:45:28 |
@lily:lily.flowers | In reply to @aktaboot:tchncs.de so systemd in the initrd is still experimental, or fairly stable at this point ? Also what major benefits/features does it bring ? Experimental but mostly working now, enough to let more people tinker with it. The only thing it's really missing tbh now that the filesystem dependency ordering stuff is fixed is fixing the ISO generation to work with it | 12:46:27 |
@lily:lily.flowers | (I did plan to get to that eventually...) | 12:47:27 |
@lily:lily.flowers | (I know vaguely what needs to be done, but it's mostly a matter of conditionalizing and redoing the logic for ISO image bootloader stuff iirc) | 12:48:19 |