From 4c397ea6de1d93dc90e8ff7757eaf3b47428b851 Mon Sep 17 00:00:00 2001 From: nikstur Date: Mon, 8 Apr 2024 16:36:28 +0200 Subject: systemd-lib: include GPTMaxLabelLength constant --- nixos/lib/systemd-lib.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nixos/lib/systemd-lib.nix') diff --git a/nixos/lib/systemd-lib.nix b/nixos/lib/systemd-lib.nix index 832160111da4e..b67495609ff5a 100644 --- a/nixos/lib/systemd-lib.nix +++ b/nixos/lib/systemd-lib.nix @@ -525,4 +525,9 @@ in rec { )} ''; + # The maximum number of characters allowed in a GPT partition label. This + # limit is specified by UEFI and enforced by systemd-repart. + # Corresponds to GPT_LABEL_MAX from systemd's gpt.h. + GPTMaxLabelLength = 36; + } -- cgit 1.4.1