!oNSIfazDqEcwhcOjSL:matrix.org

disko

171 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko55 Servers

Load older messages


SenderMessageTime
10 Sep 2024
@colemickens:matrix.orgcolemickensthe next step would be vmTools, but also :/ I'm starting to doubt ?05:07:59
@colemickens:matrix.orgcolemickensmaybe this is vmTools use of buildPackages, and maybe I can just set customQemu and get around it05:14:34
@colemickens:matrix.orgcolemickenswell no that doesn't make sense, build and host is aarch64-linux. what the heck then.05:14:52
@colemickens:matrix.orgcolemickens matthewcroughan: https://github.com/NixOS/nixpkgs/pull/325619 doesn't this kinda not work since ${qemu} is still used for making the empty disk image, etc? 05:40:54
@colemickens:matrix.orgcolemickensI'm so confused. If I build qemu_kvm or buildPackages.qemu_kvm it works, but if I build diskoImageScript it acts like it's crosscompiling from x86_64-linux. I've checked nixpkgs host/buildPlatform. :/05:43:10
@colemickens:matrix.orgcolemickensxargs cp :/06:25:21
@colemickens:matrix.orgcolemickensruns out of mem06:25:25
@colemickens:matrix.orgcolemickenshttps://github.com/nix-community/disko/blob/e55f9a8678adc02024a4877c2a403e3f6daf24fe/lib/make-disk-image.nix#L200 💀06:31:03
@colemickens:matrix.orgcolemickensminus a couple small things, disko was great. got a gpt rk3588 uboot+roofs emmc image image, all automated with disko.07:47:18
@colemickens:matrix.orgcolemickenstruly much more pleasant that sdImage07:47:39
@matthewcroughan:defenestrate.itmatthewcroughan
In reply to @colemickens:matrix.org
xargs cp :/
OMG you found the reason for the out of mem?
11:36:09
@matthewcroughan:defenestrate.itmatthewcroughanCan we fix it11:36:11
@matthewcroughan:defenestrate.itmatthewcroughan lassulus: 11:36:26
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/nix-community/disko/blob/e55f9a8678adc02024a4877c2a403e3f6daf24fe/disko-install#L23811:36:45
@matthewcroughan:defenestrate.itmatthewcroughanxargs cp is running out of mem apparently according to cole11:36:56
@lassulus:lassul.uslassulushm? I thought the xargs cp was used instead of the nix copy since it uses less memory?11:37:01
@matthewcroughan:defenestrate.itmatthewcroughan * xargs cp is running out of mem apparently in disko according to cole11:37:01
@matthewcroughan:defenestrate.itmatthewcroughanmaybe both do and we still haven't found the reason, but it's interesting that cole identified it almost immediately11:37:25
@lassulus:lassul.uslassulusyeah copying derivations is usually the step where we do OOM11:38:51
@shinri:zince.net@shinri:zince.net left the room.12:37:47
@colemickens:matrix.orgcolemickensno no14:57:14
@colemickens:matrix.orgcolemickensso the issue is that there's a module option for memSize, that is ignored in the impure/script route.14:57:29
@colemickens:matrix.orgcolemickensI can try to remember to send a small patch for that.14:57:38
@colemickens:matrix.orgcolemickens The postVM example is also ... wrong (you can't glob like that in a script), and ALSO a bit scary, because the script just clobbers $out/disk0.raw, no matter what is there, and worse, if the globbing worked, would just hit every "*raw" in whatever $out happens to be. 14:58:30
@colemickens:matrix.orgcolemickensBut also, yeah, it would be cool if it didn't use up a fair bit of ram just running 'cp' :)14:59:03
@colemickens:matrix.orgcolemickens * The postVM example is also ... wrong (you can't glob like that in a script), and ALSO a bit scary, because the script just clobbers $out/disk0.raw, no matter what is there, and worse, if the globbing worked, would just hit every "*raw" in whatever $out happens to be. (In "impure" $out is just where you run the image script from!) 14:59:43
@matthewcroughan:defenestrate.itmatthewcroughan
In reply to @colemickens:matrix.org
But also, yeah, it would be cool if it didn't use up a fair bit of ram just running 'cp' :)
the image builder occasionally ooms still to this day I think
15:23:07
@matthewcroughan:defenestrate.itmatthewcroughanit's not very reproducible, just happens sometimes15:23:13
@matthewcroughan:defenestrate.itmatthewcroughanmaybe we could replace xargs and cp with rust based things and see if it still happens15:24:16
@matthewcroughan:defenestrate.itmatthewcroughan There is rargs and fcp 15:24:46

Show newer messages


Back to Room ListRoom Version: 10