!oNSIfazDqEcwhcOjSL:matrix.org

disko

362 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko93 Servers

Load older messages


SenderMessageTime
10 Sep 2024
@tumble1999:matrix.orgTumble
In reply to @zerox:guix.uz
Tumble: yes, it can be raidz1. See: https://github.com/nix-community/disko/blob/master/lib/types/zpool.nix#L4
Because I have zfs housing my /home and /var will I have to rebuild the whole install?
00:30:39
@tumble1999:matrix.orgTumbleI'm ok with that anyway because I've only just done that 10 hours ago00:31:09
@colemickens:matrix.orgcolemickensIs it possible to specify a disko image partition whose contents are... a uboot build output, for example?02:56:44
@colemickens:matrix.orgcolemickensweird.04:57:50
@colemickens:matrix.orgcolemickensI'm trying to build diskoImagesScript on the aarch64 box for a hostPlatform.system = "aarch64-linux" machine and it's complaining that it wants an x86_64-linux builder for a qemu run-vm dep04:58:33
@colemickens:matrix.orgcolemickenseven weirder, it's a dep of an aarch64 output?05:00:54
@colemickens:matrix.orgcolemickens
/nix/store/giwwj37z3bv7zcd9np4h1475gv6v723x-h96maxv58-disko-images.drv
└───/nix/store/icdy400c78p77dmg953x9n0s9cd51x81-h96maxv58-disko-images.drv
    └───/nix/store/mw0b87v5jir4lv9qk50h3dahqznqicmc-vm-run.drv
        └───/nix/store/3sc1kz031fhjq0m6lk0dd96zb23c9jck-qemu-host-cpu-only-9.1.0.drv
            └───/nix/store/wgyx5ghqdsy6zjr2f43bd1k53mbryiki-mesa-aarch64-unknown-linux-gnu-24.2.0.drv
                └───/nix/store/wzab9w8ak2mafl1gxwi811lbc7pyjcgl-source.drv
05:00:57
@colemickens:matrix.orgcolemickens
error: a 'x86_64-linux' with features {} is required to build '/nix/store/wzab9w8ak2mafl1gxwi811lbc7pyjcgl-source.drv', but I am a 'aarch64-linux' with features {benchmark, big-parallel, gccarch-armv8-a, kvm, nixos-test}
05:01:13
@colemickens:matrix.orgcolemickensodd, odd, odd.05:01:17
@colemickens:matrix.orgcolemickens"aarch64-unknown-linux-gnu" looks like cross-comp but idk why05:02:10
@colemickens:matrix.orgcolemickens I'm looking at how imageBuilderPkgs is defaulted/used and how host/buildPlatform are set for the system that includes this module and it seems like everything should be fine 05:07:38
@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

Show newer messages


Back to Room ListRoom Version: 10