From 03a80b8583d4aff802386f05ebd7ad8190a9a9b4 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 21 Sep 2024 15:22:04 +0200 Subject: [PATCH] Reload labels when probing partitions --- lib/modules/partition/disks.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/modules/partition/disks.nix b/lib/modules/partition/disks.nix index 75740de1..e677b46c 100644 --- a/lib/modules/partition/disks.nix +++ b/lib/modules/partition/disks.nix @@ -8,9 +8,13 @@ fs = import ./fs.nix; diskListVarName = "myDisks"; - probeScript = "partprobe 2> /dev/null || true"; isSwap = partition: builtins.elem partition.type [fs.swap 19]; + probeScript = builtins.concatStringsSep "\n" [ + "partprobe 2> /dev/null || true" + "udevadm trigger" + ]; + mkDiskType = osDisk: types.submodule ( { config, name, ... }: { options = {