| 27 Jun 2024 |
lassulus | 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}
'');
| 16:37:09 |
lassulus | btw, why are you running nixos-anywhere again? | 16:37:24 |
lassulus | you can also just use nixos-rebuild --target-host | 16:37:40 |
colemickens | lassulus: I want to tear down the Hetzner machines when I'm not using them. The goal is to have /nix and /home on a volume. So I can recreate server, re-run nixos-anyhwere, and have /nix and /home (and maybe /etc, I guess) restored. | 16:38:56 |
colemickens | 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}
'');
nice, thanks. | 16:38:57 |
lassulus | the script was not tested, but I hope you get the idea :) | 16:39:19 |
| 28 Jun 2024 |
| @axiomss:matrix.org left the room. | 04:13:09 |
magic_rb | i wanted to ask: on systems with a MBR parttable i keep getting the warning about it being deprecated and from what i read on the github page of disko, the path forward is to switch to GPT, but i have at least one system where that is impossible and multiple where switching it right now would be very very impractical. Is MBR supported some other way or are you just deprecating support for it completely? | 06:26:53 |
lassulus | Mostly dropping completly. There are hybrid tables in GPT. And I haven't seen a usecase where they don't work | 07:05:41 |
magic_rb | In reply to @lassulus:lassul.us Mostly dropping completly. There are hybrid tables in GPT. And I haven't seen a usecase where they don't work On my ereader the gpt parttable collides with where uboot needs to be, can it be moved somehow? Uboot needs to be at 1k offset from the start of the sd and takes up 3MB roughly | 07:13:11 |
lassulus | hmm, maybe, but I don't think disko has support for that right now | 07:26:28 |
Mic92 | lassulus: I just live-migrated a system with incremental disko format and it worked! | 09:24:29 |
Mic92 | In reply to @magic_rb:matrix.redalder.org i wanted to ask: on systems with a MBR parttable i keep getting the warning about it being deprecated and from what i read on the github page of disko, the path forward is to switch to GPT, but i have at least one system where that is impossible and multiple where switching it right now would be very very impractical. Is MBR supported some other way or are you just deprecating support for it completely? I would say it's a bit about expectation management, we won't implement new features for these old stuff and we added the warning to get most people to migrate. But realistically there are enough systems with it still out there that we won't remove it any time soon. | 09:27:02 |
lassulus | brave | 09:28:57 |
lassulus | we could also build a new type with MBR | 09:29:06 |
Mic92 | It was a k3s node, so I gave zero fucks. | 09:30:37 |
Mic92 | lassulus: more incremental zfs stuff: https://github.com/nix-community/disko/pull/689/files | 11:53:55 |
Mic92 | Basically applying zfs dataset options. | 11:54:23 |
@annaaurora:artemislena.eu | In reply to @magic_rb:matrix.redalder.org On my ereader the gpt parttable collides with where uboot needs to be, can it be moved somehow? Uboot needs to be at 1k offset from the start of the sd and takes up 3MB roughly you're running nixos on you ereader? | 12:39:52 |
@annaaurora:artemislena.eu | * you're running nixos on your ereader? | 12:40:16 |
Mic92 | I was running the incremental disk formatting from a rescue system, so you don't have to and it was wiping my zfs pool :) | 12:51:28 |
Mic92 | lassulus: our format script runs with all disks mounted, right? | 12:52:21 |
lassulus | Uhm. Not sure what you mean. But formating is run before mounting | 12:56:45 |
Mic92 | lassulus: I mean in our regression test. | 12:57:32 |
lassulus | yes, the reformatting works happens with the mounted fs, since we don't have a non destructive unmount script | 13:25:21 |
magic_rb | In reply to @annaaurora:artemislena.eu you're running nixos on you ereader? Yeah im trying | 13:52:12 |
| 30 Jun 2024 |
| dustee joined the room. | 09:03:26 |
dustee | hi im having trouble creating diskoImages for aarch64-linux, the process always hangs at EFI stub: Exiting boot services... | 09:04:19 |
dustee | i tried a bunch of different configurations and for aarch64 it always stops at that step | 09:05:41 |
dustee | but for x86_64-linux, it goes through and creates the image successfully | 09:06:17 |