| 4 Apr 2022 |
@janne.hess:helsinki-systems.de | I have enough mergers here π | 20:56:51 |
bobvanderlinden | haha nice :D awesome to see the collaboration here! | 20:57:11 |
bobvanderlinden | I'm cleaning up the previous changes from make-initrd-ng, but now that there are more 'flags' for the contents file entries I think it might be better to just use a proper stdin input format (JSON?) and output a cpio file directly from the make-initrd-ng executable while we're at it (instead of piping paths from make-initrd-ng to cpio). | 20:59:51 |
bobvanderlinden | Currently stdin expects 2 lines per file entry (1 for symlink, 1 for object). With exportReferencesGraph it would need 3 lines per file entry. It becomes a bit messy. | 21:01:33 |
bobvanderlinden | Not sure of JSON is the right way to go, but something more structured made sense | 21:01:57 |
@janne.hess:helsinki-systems.de | I think something as simple as a csv would be good enough. Although nix can easily serialize JSON so JSON is probably cleaner in the end | 21:03:37 |
@janne.hess:helsinki-systems.de | ohh but this has the downside that we now need cargo dependencies (for serde) which we didn't need before | 21:03:58 |
bobvanderlinden | indeed, same if we are using a cpio library (or libarchive binding?) | 21:04:39 |
bobvanderlinden | not that much of a problem right? | 21:05:13 |
@janne.hess:helsinki-systems.de | if we get it into the package properly without causing IFD, it should be fine | 21:05:36 |
bobvanderlinden | My solution still required proot to do nasty path rewrites to satisfy cpio: https://github.com/bobvanderlinden/nixpkgs/blob/c0f04240f5ed024c1d2dcf3a7b62eb346132f4ad/pkgs/build-support/kernel/make-initrd-ng.nix#L84-L87
That's why I'm contemplating just doing everything.
The code of the /nix/store/ lookup and stdout path output can be found here:
https://github.com/bobvanderlinden/nixpkgs/blob/c0f04240f5ed024c1d2dcf3a7b62eb346132f4ad/pkgs/build-support/kernel/make-initrd-ng/src/main.rs
I can make an PR, but I'd rather do it properly and invest some time if no-one else is going to work on it. Kindof liked having a small Rust project to work on π
| 21:11:10 |
bobvanderlinden | * My solution still required proot to do nasty path rewrites to satisfy cpio: https://github.com/bobvanderlinden/nixpkgs/blob/c0f04240f5ed024c1d2dcf3a7b62eb346132f4ad/pkgs/build-support/kernel/make-initrd-ng.nix#L84-L87
That's why I'm contemplating just doing everything in Rust.
The code of the /nix/store/ lookup and stdout path output can be found here:
https://github.com/bobvanderlinden/nixpkgs/blob/c0f04240f5ed024c1d2dcf3a7b62eb346132f4ad/pkgs/build-support/kernel/make-initrd-ng/src/main.rs
I can make an PR, but I'd rather do it properly and invest some time if no-one else is going to work on it. Kindof liked having a small Rust project to work on π
| 21:11:42 |
bobvanderlinden | anyway, bedtime here. Looking forward to any (larger) PR! :D The progress here is quite exciting | 21:12:33 |
@janne.hess:helsinki-systems.de | In reply to @bobvanderlinden_:matrix.org My solution still required proot to do nasty path rewrites to satisfy cpio: https://github.com/bobvanderlinden/nixpkgs/blob/c0f04240f5ed024c1d2dcf3a7b62eb346132f4ad/pkgs/build-support/kernel/make-initrd-ng.nix#L84-L87 That's why I'm contemplating just doing everything in Rust. The code of the /nix/store/ lookup and stdout path output can be found here: https://github.com/bobvanderlinden/nixpkgs/blob/c0f04240f5ed024c1d2dcf3a7b62eb346132f4ad/pkgs/build-support/kernel/make-initrd-ng/src/main.rs I can make an PR, but I'd rather do it properly and invest some time if no-one else is going to work on it. Kindof liked having a small Rust project to work on π
I'm not going to work on it ;) | 21:15:42 |
| 5 Apr 2022 |
@hexa:lossy.network | https://github.com/NixOS/nixpkgs/commit/5844b1c2fa38d4392063ccea9c75b13f28652b82 | 00:36:23 |
@hexa:lossy.network | someone here broke eval on staging-next | 00:36:27 |
@hexa:lossy.network | Janne HeΓ: ^ | 00:36:35 |
@hexa:lossy.network |
anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/pkgs/os-specific/linux/systemd/default.nix:3:1 called with unexpected argument 'lvm2', at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/lib/customisation.nix:69:16
| 00:36:57 |
@hexa:lossy.network | * someone here broke eval on staging-next π | 00:38:52 |
@hexa:lossy.network | * someone here probably broke eval on staging-next π | 00:38:59 |
@janne.hess:helsinki-systems.de | In reply to @hexa:lossy.network
anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/pkgs/os-specific/linux/systemd/default.nix:3:1 called with unexpected argument 'lvm2', at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-6/lib/customisation.nix:69:16
Yay, someone's going to fix this soon as well | 06:29:40 |
@janne.hess:helsinki-systems.de | Also it's my first staging-next breakage πͺ | 06:29:52 |
bobvanderlinden | Lvm2 wasn't a dependency of systemd and now it is? | 07:04:48 |
bobvanderlinden | Might explain the system-generator that has gone missing in the recent lvm version | 07:05:38 |
@andreas.schraegle:helsinki-systems.de | In reply to @bobvanderlinden_:matrix.org Might explain the system-generator that has gone missing in the recent lvm version Didn't I send the link to the commit that removed that from lvm, the other day? I thought those two things are unrelated. Didn't systemd depend on lvm already? | 08:00:57 |
@janne.hess:helsinki-systems.de | In reply to @bobvanderlinden_:matrix.org Lvm2 wasn't a dependency of systemd and now it is? it was optional before | 08:06:44 |
@hexa:lossy.network | In reply to @janne.hess:helsinki-systems.de Also it's my first staging-next breakage πͺ very cool! | 10:29:52 |
@janne.hess:helsinki-systems.de | bobvanderlinden: have you seen the case where you were able to type your password but it would forever hang on decryption? | 10:54:34 |
@janne.hess:helsinki-systems.de | not logging anything? | 10:54:38 |
@janne.hess:helsinki-systems.de | Update of the day: I now have a disk mounted that is on LVM that is on LUKS | 15:26:39 |