!oNSIfazDqEcwhcOjSL:matrix.org

disko

362 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko93 Servers

Load older messages


SenderMessageTime
27 Jun 2024
@lassulus:lassul.uslassulusjust running the formatScript output from disko would not kill the disk15:55:32
@colemickens:matrix.orgcolemickensI wonder how hard it would be to hack at nixos-anywhere to give it a flag to skip the deactive-disk.16:32:22
@lassulus:lassul.uslassulus

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:lassul.uslassulusbtw, why are you running nixos-anywhere again?16:37:24
@lassulus:lassul.uslassulusyou can also just use nixos-rebuild --target-host 16:37:40
@colemickens:matrix.orgcolemickens 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: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}
'');
nice, thanks.
16:38:57
@lassulus:lassul.uslassulusthe script was not tested, but I hope you get the idea :)16:39:19
28 Jun 2024
@axiomss:matrix.orgaxiomss left the room.04:13:09
@magic_rb:matrix.redalder.orgmagic_rbi 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:lassul.uslassulusMostly dropping completly. There are hybrid tables in GPT. And I haven't seen a usecase where they don't work07:05:41
@magic_rb:matrix.redalder.orgmagic_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:lassul.uslassulushmm, maybe, but I don't think disko has support for that right now07:26:28
@joerg:thalheim.ioMic92 lassulus: I just live-migrated a system with incremental disko format and it worked! 09:24:29
@joerg:thalheim.ioMic92
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:lassul.uslassulusbrave09:28:57
@lassulus:lassul.uslassuluswe could also build a new type with MBR09:29:06
@joerg:thalheim.ioMic92It was a k3s node, so I gave zero fucks.09:30:37
@joerg:thalheim.ioMic92 lassulus: more incremental zfs stuff: https://github.com/nix-community/disko/pull/689/files 11:53:55
@joerg:thalheim.ioMic92Basically applying zfs dataset options.11:54:23
@annaaurora:artemislena.euAnna Aurora
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.euAnna Aurora * you're running nixos on your ereader? 12:40:16
@joerg:thalheim.ioMic92I 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
@joerg:thalheim.ioMic92 lassulus: our format script runs with all disks mounted, right? 12:52:21
@lassulus:lassul.uslassulusUhm. Not sure what you mean. But formating is run before mounting12:56:45
@joerg:thalheim.ioMic92 lassulus: I mean in our regression test. 12:57:32
@lassulus:lassul.uslassulusyes, the reformatting works happens with the mounted fs, since we don't have a non destructive unmount script13:25:21
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @annaaurora:artemislena.eu
you're running nixos on you ereader?
Yeah im trying
13:52:12
30 Jun 2024
@dustee:matrix.orgdustee joined the room.09:03:26
@dustee:matrix.orgdustee hi im having trouble creating diskoImages for aarch64-linux, the process always hangs at EFI stub: Exiting boot services... 09:04:19

Show newer messages


Back to Room ListRoom Version: 10