!oNSIfazDqEcwhcOjSL:matrix.org

disko

430 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko118 Servers

Load older messages


SenderMessageTime
27 Jun 2024
@lassulus:lassul.uslassulusthat one runs the deactivate-disk script, this one destroys the disk15:55:19
@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

There are no newer messages yet.


Back to Room ListRoom Version: 10