From e4b52ab26e7f0181460a5454a28f23a4550de5cf Mon Sep 17 00:00:00 2001 From: Dustin Frisch Date: Mon, 10 Jun 2024 13:44:49 +0200 Subject: [PATCH] all: modernize disk generation --- machines/manager/disk.nix | 3 +++ machines/node/disk.nix | 3 +++ 2 files changed, 6 insertions(+) diff --git a/machines/manager/disk.nix b/machines/manager/disk.nix index ba5b829..e6dfd2b 100644 --- a/machines/manager/disk.nix +++ b/machines/manager/disk.nix @@ -7,6 +7,7 @@ type = "gpt"; partitions = { ESP = { + label = "ESP"; start = "1MiB"; size = "100MiB"; type = "EF00"; @@ -17,6 +18,7 @@ }; }; root = { + label = "primary"; start = "100MiB"; end = "-4GB"; content = { @@ -26,6 +28,7 @@ }; }; swap = { + label = "swap"; end = "100%"; content = { type = "swap"; diff --git a/machines/node/disk.nix b/machines/node/disk.nix index 61f306f..7270cca 100644 --- a/machines/node/disk.nix +++ b/machines/node/disk.nix @@ -7,11 +7,13 @@ type = "gpt"; partitions = { boot = { + label = "ESP"; size = "1M"; type = "EF02"; priority = 1; }; root = { + label = "root"; end = "-4GB"; content = { type = "filesystem"; @@ -21,6 +23,7 @@ }; }; swap = { + label = "swap"; size = "100%"; content = { type = "swap";