nixos/qemu-vm: use cfg.host.pkgs#238596
Conversation
emilazy
left a comment
There was a problem hiding this comment.
Thank you! This looks right (dunno about the closureInfo but I'll defer to you). I'll look into e2fsprogs myself soon.
RaitoBezarius
left a comment
There was a problem hiding this comment.
This looks good indeed! Thank you
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/darwin-builder-on-an-m1-mac-problems-with-mkfs-ext4/29523/3 |
|
We need a Darwin person to confirm this is fixing darwin.builder. |
|
I confirmed locally that this PR fixes HOWEVER, I had to also wipe the old |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/darwin-builder-on-an-m1-mac-problems-with-mkfs-ext4/29523/5 |
|
@Gabriella439 thank you for testing
Sadly, I don't think there is anything we can do about that. |
It's still broken on x86_64 because of CoreFoundation rpath hook problems breaking In other words, LGTM; this is more correct even if it doesn't fix the package on all platforms immediately. |
Atemu
left a comment
There was a problem hiding this comment.
I was not able to run the created machine because it prints this error but creation works again which is what this PR's purpose is.
qemu-system-aarch64: -netdev user,id=user.0,hostfwd=tcp::22-:22,: Could not set up host forwarding rule 'tcp::22-:22'
I noticed recently that you have to do this when changing the disk space option too. I really wish the qemu-vm stuff would recognize when something changes that requires wiping the image, but that seems orthogonal to this particular issue. |
|
With #239473 maybe we can eliminate the persistent image altogether? But agreed that this PR should land as-is. |
ed51497 to
f6b37dd
Compare
It's a little more complicated than this. There are multiple and different kinds of persistent images used in the QEMU module. The erofs PR would only lay the groundwork to get rid of one of them (the Nix Store image built with make-disk-image.nix). |
Atemu
left a comment
There was a problem hiding this comment.
LGTM.
Nit: The commit message could explain itself a bit better.
|
Should this be backported? |
|
I think the changes that broke |
Description of changes
Hopefully fixes at least part of the issue described here: #236656 (comment)
I'm not sure if all these instances need to be exchanged for
cfg.host.pkgsbut it seems right to me.Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)