!oNSIfazDqEcwhcOjSL:matrix.org

disko

354 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko89 Servers

Load older messages


SenderMessageTime
19 May 2024
@matthewcroughan:defenestrate.itmatthewcroughan * This same problem would be solved by running the vmTools on the hostPlatform, and allowing it to do binfmt, instead of treating the VM performing the disk partitioning/formatting as something that needs to run on the system arch of the nixosConfig18:38:37
@matthewcroughan:defenestrate.itmatthewcroughanMy next project was going to be making images for visionfivev1/218:42:05
@matthewcroughan:defenestrate.itmatthewcroughan * My next project was going to be making images for visionfivev1/2 that boot with bcachefs too18:42:13
@matthewcroughan:defenestrate.itmatthewcroughan

Is this perhaps another way that disko's architecture fails because of the hostPlatform issue?

corpo-disko-images> qemu-system-aarch64: could not load kernel '/nix/store/fqwx7jpif67dzqhiggnnj69nhch8jp23-kernel-modules/vmlinuz.efi'
error: build of '/nix/store/zzvgpqhc34ha13p2a70l2s5ya324safa-corpo-disko-images.drv' on 'ssh-ng://matthewcroughan@aarch64.nixos.community' failed: builder for '/nix/store/zzvgpqhc34ha13p2a70l2s5ya324safa-corpo-disko-images.drv' failed with exit code 1;
       last 2 log lines:
       > unable to handle EFI zboot image with "zstd22" compression
       > qemu-system-aarch64: could not load kernel '/nix/store/fqwx7jpif67dzqhiggnnj69nhch8jp23-kernel-modules/vmlinuz.efi'
       For full logs, run 'nix log /nix/store/zzvgpqhc34ha13p2a70l2s5ya324safa-corpo-disko-images.drv'.
20:51:22
@matthewcroughan:defenestrate.itmatthewcroughanWhy does disko care?20:51:25
@matthewcroughan:defenestrate.itmatthewcroughandisko is trying to load the kernel from my nixosConfig, but why? That should only be relevant for an installTest if anything20:53:51
@matthewcroughan:defenestrate.itmatthewcroughanYes.. inheriting the kernel from the host is not quite right https://github.com/nix-community/disko/blob/master/lib/make-disk-image.nix#L1321:11:43
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/qemu/qemu/blob/master/hw/core/loader.c#L92421:18:14
@matthewcroughan:defenestrate.itmatthewcroughanAnything other than a gzipped kernel is not supported in QEMU 21:18:31
@matthewcroughan:defenestrate.itmatthewcroughanFFFFFFFFFFFFFF21:18:34
@matthewcroughan:defenestrate.itmatthewcroughanAlthough it does highlight that disko shouldn't be using the target kernel, just to make the disk image for the target21:19:38
@matthewcroughan:defenestrate.itmatthewcroughanIt was me who implemented that though, so I should feel bad21:44:38
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/nix-community/disko/pull/46721:44:53
@matthewcroughan:defenestrate.itmatthewcroughanThe solution is uefi, but is there a use case for not using UEFI?22:05:38
@matthewcroughan:defenestrate.itmatthewcroughanI can make the PR, but wondering if I should make it boolean22:06:10
20 May 2024
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/nix-community/disko/pull/64308:46:42
@matthewcroughan:defenestrate.itmatthewcroughanCloser to finding memory leaks..09:34:35
@matthewcroughan:defenestrate.itmatthewcroughanI switched to systemd-boot from generic-extlinux, and now I'm getting the "Cannot allocate memory" all the time09:34:50
@matthewcroughan:defenestrate.itmatthewcroughanincreasing memory to 16384 fixed it09:40:09
@matthewcroughan:defenestrate.itmatthewcroughan
corpo-disko-images> setting up /etc...
corpo-disko-images> Initializing machine ID from random generator.
corpo-disko-images> File system "/boot" is not a FAT EFI System Partition (ESP) file system.
corpo-disko-images> Traceback (most recent call last):
corpo-disko-images>   File "/nix/store/hk9khalas7ig9lpd8xygb00jgx9kjv2d-4d4f3f52hgwgk63d4fjg1rj4c1jdg9mn-systemd-boot", line 394, in <module>
corpo-disko-images>     main()
corpo-disko-images>   File "/nix/store/hk9khalas7ig9lpd8xygb00jgx9kjv2d-4d4f3f52hgwgk63d4fjg1rj4c1jdg9mn-systemd-boot", line 377, in main
corpo-disko-images>     install_bootloader(args)
corpo-disko-images>   File "/nix/store/hk9khalas7ig9lpd8xygb00jgx9kjv2d-4d4f3f52hgwgk63d4fjg1rj4c1jdg9mn-systemd-boot", line 292, in install_bootloader
corpo-disko-images>     subprocess.check_call([f"{SYSTEMD}/bin/bootctl", f"--esp-path={EFI_SYS_MOUNT_POINT}"] + bootctl_flags + ["install"])
corpo-disko-images>   File "/nix/store/vbfsfi87f7ks3hndbvn72n4334f9xll0-python3-3.11.9/lib/python3.11/subprocess.py", line 413, in check_call
corpo-disko-images>     raise CalledProcessError(retcode, cmd)
corpo-disko-images> subprocess.CalledProcessError: Command '['/nix/store/wh5wyrs4nxdx7kh3ip0psn11rc2kknl1-systemd-255.4/bin/bootctl', '--esp-path=/boot', '--no-variables', 'install']' returned non-zero exit status 1.
09:40:12
@matthewcroughan:defenestrate.itmatthewcroughanAnd then I see this for the first time, which is good. It warns me that my FS hasn't got the right type09:40:38
@matthewcroughan:defenestrate.itmatthewcroughanbut this part of the build never arrives unless I increase the memory size09:40:51
@matthewcroughan:defenestrate.itmatthewcroughan though the "Cannot allocate memory" errors come from cp.. actually. 09:41:18
@matthewcroughan:defenestrate.itmatthewcroughan The bootloader install is probably calling cp, 09:41:38
@matthewcroughan:defenestrate.itmatthewcroughan * The bootloader install is probably calling cp 09:41:40
@matthewcroughan:defenestrate.itmatthewcroughan
corpo-disko-images> + /nix/store/gc39rhvazg28s7y80c4c0a24x3hsv92p-postMountHook.sh
corpo-disko-images> + rm -rf /tmp/tmp.qOc2Qrmj2x
corpo-disko-images> warning: the group 'nixbld' specified in 'build-users-group' does not exist
corpo-disko-images> cp: cannot access '/nix/store/flqdgxi79hgv69k8vc1rdcxvn30m0i3r-perl5.38.2-HTTP-Cookies-6.10': Cannot allocate memory
corpo-disko-images> cp: cannot access '/nix/store/fzh5aadrdl76f7cn930ls979x6cgblyd-libsoup-2.74.3/share/locale/gl/LC_MESSAGES': Cannot allocate memory
09:41:58
21 May 2024
@bumperboat:matrix.orgbumperboat changed their display name from bumperboat (UTC+8) to bumperboat (UTC+7).04:34:19
@matthewcroughan:defenestrate.itmatthewcroughan lassulus: any comments on https://github.com/nix-community/disko/pull/643 ? 11:31:00
@matthewcroughan:defenestrate.itmatthewcroughanI didn't really think it's worth setting up a boolean, since it passes all the tests and I can't yet imagine a use-case where you'd want to disable EFI, especially given that legacy types are not supported in disko properly anymore11:31:46
@tanja:catgirl.cloudTanja (she/her) joined the room.11:37:13

Show newer messages


Back to Room ListRoom Version: 10