!oNSIfazDqEcwhcOjSL:matrix.org

disko

359 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko91 Servers

Load older messages


SenderMessageTime
1 Jul 2024
@joerg:thalheim.ioMic92Ah wait. you actually cannot build the image itself.05:54:50
@joerg:thalheim.ioMic92 dustee: maybe we do something wrong with how we set up efi on arm64? https://github.com/nix-community/disko/blob/d185770ea261fb5cf81aa5ad1791b93a7834d12c/lib/make-disk-image.nix#L83 05:56:26
@joerg:thalheim.ioMic92also this looks very similar: https://github.com/NixOS/nixpkgs/blob/2b753fb3c635639dffd9915d10e2e32ba3525fc6/nixos/lib/make-disk-image.nix#L55005:57:22
2 Jul 2024
@colemickens:matrix.orgcolemickens
In reply to @lassulus:lassul.us

should be already possible, you are using flakes I guess? you could say something like:

system.build.diskoScript = lib.mkForce (pkgs.writeScriptBin "disko-without-wipe" ''
  ${config.system.build.formatScript}
  ${config.system.build.mountScript}
'');
I think I need something more sophisticated, since I do need the root to be destroyed before format on each reprovision.
06:41:42
@colemickens:matrix.orgcolemickensI'm wondering if it makes sense to introduce a "skipDestroy" option to the module06:41:58
@colemickens:matrix.orgcolemickens(per-disk or vol or something maybe)06:42:09
@lassulus:lassul.uslassulushmm, this works only in the case where you would have the current existing structure defined in nix which lives on your disk? 06:42:49
@lassulus:lassul.uslassulusnot a very common usecase I would say06:42:55
@lassulus:lassul.uslassulusor you think just for the disk?06:43:08
@colemickens:matrix.orgcolemickensI'm not sure I followed - to recap, for first provision, I want to destroy/format, and then presumably update my disk-config.nix to say "okay, no longer run destroy on disk2". Since disk2 is going to persist as it's a hetzner volume.06:44:14
@colemickens:matrix.orgcolemickensdisk1 is just the ephemeral vm disk, so I always need it destroyed06:44:30
@colemickens:matrix.orgcolemickensIt might not be super duper common, but I feel like it's an interesting use-case. maybe :).06:44:56
@colemickens:matrix.orgcolemickensI guess.. I mean, I could just write my own destroy command and prepend it to my overriden diskoScript..06:45:50
@colemickens:matrix.orgcolemickensnice, that worked. wipefs'd + dd'd off the first 512M. seems to have left my /home contents.06:53:26
@lassulus:lassul.uslassulusyou can run the disko internal destroy command and just run it on the disks you want06:53:36
@colemickens:matrix.orgcolemickensI saw jq and bailed :) but yeah, I probably should just have done that06:54:04
@colemickens:matrix.orgcolemickensfor now this works, gotta figure out why this isn't playing nice with the arm64 version now.06:54:20
3 Jul 2024
@matthewcroughan:defenestrate.itmatthewcroughanIf vendor kernels are in use, it's easy to make the disk image builder stall18:24:34
@matthewcroughan:defenestrate.itmatthewcroughan
blikvm-v1-disko-images> UEFI firmware (version  built at 00:00:00 on Jan  1 1980)
blikvm-v1-disko-images> EFI stub: Decompressing Linux Kernel...
blikvm-v1-disko-images> EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
blikvm-v1-disko-images> EFI stub: Generating empty DTB
blikvm-v1-disko-images> EFI stub: Exiting boot services...
18:24:36
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/nix-community/disko/commit/bb75ad0b1d5a63884586517920b9a189721fc54d18:28:34
@matthewcroughan:defenestrate.itmatthewcroughanThis commit was so much more problematic than I anticipated18:28:42
@matthewcroughan:defenestrate.itmatthewcroughanI should make it possible to override this 18:28:50
4 Jul 2024
@eyjhb:eyjhb.dkeyJhb left the room.10:58:18
@philiptaron:matrix.orgPhilip Taron (UTC-8) left the room.15:46:39
@philiptaron:matrix.orgPhilip Taron (UTC-8) joined the room.15:55:30
@soispha:vhack.euBenedikt changed their display name from Soispha to Benedikt.19:11:30
@vartroc:matrix.org@vartroc:matrix.org left the room.19:17:56
5 Jul 2024
@matthewcroughan:defenestrate.itmatthewcroughanAnyone wanna help?20:36:48
@matthewcroughan:defenestrate.itmatthewcroughan blikvm-v1-disko-images> qemu-system-aarch64: failed to load "/nix/store/d2vw2hx48nphic1n4xd8y43q5vdn4lfk-kernel-modules/vmlinuz.efi" 20:36:49
@matthewcroughan:defenestrate.itmatthewcroughanwhy would that happen..20:36:56

Show newer messages


Back to Room ListRoom Version: 10