!oNSIfazDqEcwhcOjSL:matrix.org

disko

367 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko95 Servers

Load older messages


SenderMessageTime
14 Dec 2023
@matthewcroughan:defenestrate.itmatthewcroughan * It does not look as if you can override the utils provided to the vmTools initrd.. hmm https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/vm/default.nix#L2913:34:38
@matthewcroughan:defenestrate.itmatthewcroughan I can't solve this in a preCreateHook because those hooks get executed in a subshell which means they can't export vars? 13:41:45
@matthewcroughan:defenestrate.itmatthewcroughantime for another module option!13:42:02
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/nix-community/disko/pull/47013:53:47
@matthewcroughan:defenestrate.itmatthewcroughan I would recommend merging all the PRs that have the new module option if you think they're fine, then I'll follow up with another PR to refactor the options into disko.imageBuilder.optionName 13:54:31
@matthewcroughan:defenestrate.itmatthewcroughanI'll also make an f2fs test and example, after these PRs are merged, as well as a simple raspberry pi hybrid boot example 13:57:55
@matthewcroughan:defenestrate.itmatthewcroughanand also a pi4 example using GPT13:58:02
@matthewcroughan:defenestrate.itmatthewcroughan * and also a pi4 example using GPT partitioning13:58:06
@matthewcroughan:defenestrate.itmatthewcroughan Oh.. I can't do type = lib.types.functionTo (lib.types.listOf lib.types.package); and set it to an empty list 14:03:13
@matthewcroughan:defenestrate.itmatthewcroughan * Oh.. I can't do type = lib.types.functionTo (lib.types.listOf lib.types.package); and set it to an empty list [] 14:03:15
@matthewcroughan:defenestrate.itmatthewcroughan I saw your suggestion, but it should just be listOf package right? 14:09:19
@matthewcroughan:defenestrate.itmatthewcroughanyeah that's it, tests pass now :D14:11:08
@matthewcroughan:defenestrate.itmatthewcroughanthis test driven development is really great..14:11:27
@lassulus:lassul.uslassulusoh maybe14:19:09
@matthewcroughan:defenestrate.itmatthewcroughanUgh! f2fs isn't supported in u-boot either14:19:21
@matthewcroughan:defenestrate.itmatthewcroughanhttps://u-boot.denx.narkive.com/hZVrGP3R/f2fs-support14:19:21
@matthewcroughan:defenestrate.itmatthewcroughanHere I am, chasing the wrong things.. oh well, disko benefits 14:19:29
@matthewcroughan:defenestrate.itmatthewcroughanseems the only options for u-boot are ext4 or zfs, or the forbidden btrfs 14:19:47
@matthewcroughan:defenestrate.itmatthewcroughanbcachefs whe14:19:51
@matthewcroughan:defenestrate.itmatthewcroughan * bcachefs when14:19:53
@matthewcroughan:defenestrate.itmatthewcroughan What are the examples of things that need to run on arm64 in the VM when performing the nixos-install? 14:27:55
@matthewcroughan:defenestrate.itmatthewcroughanThe reason for the memory consumption might be because we're causing nix to evaluate when we don't need to 14:28:06
@lassulus:lassul.uslassulusmaybe we can prebuild the system outside the vm14:37:27
@matthewcroughan:defenestrate.itmatthewcroughaninheriting the host kernel in vmTools breaks cross, but I'm sure it was already broken in numerous ways14:37:57
@matthewcroughan:defenestrate.itmatthewcroughanfor extlinux and u-boot that's not even a problem, but for systemd-boot I think it would be? Not sure about it, some things exec code, whereas extlinux is just a plaintext config file for u-boot14:41:09
@matthewcroughan:defenestrate.itmatthewcroughan
In reply to @lassulus:lassul.us
maybe we can prebuild the system outside the vm
The system is being built inside the VM? I just checked and it's using a --system
14:52:42
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/nix-community/disko/blob/4c4634bbcb299248efe300b37d1624649fd59477/lib/make-disk-image.nix#L6414:53:02
@lassulus:lassul.uslassulusah then it shouldn't evaluate anything?14:53:21
@matthewcroughan:defenestrate.itmatthewcroughanthe toplevel is evaluated by the outer nix, nothing should be evaluated inside 14:53:25
@matthewcroughan:defenestrate.itmatthewcroughanhard to say what the memory usage is coming from, will debug it later 14:53:33

Show newer messages


Back to Room ListRoom Version: 10