Reload labels when probing partitions

This commit is contained in:
Manuel Thalmann 2024-09-21 15:22:04 +02:00
parent 64fb3b5208
commit 03a80b8583

View file

@ -8,9 +8,13 @@
fs = import ./fs.nix; fs = import ./fs.nix;
diskListVarName = "myDisks"; diskListVarName = "myDisks";
probeScript = "partprobe 2> /dev/null || true";
isSwap = partition: builtins.elem partition.type [fs.swap 19]; isSwap = partition: builtins.elem partition.type [fs.swap 19];
probeScript = builtins.concatStringsSep "\n" [
"partprobe 2> /dev/null || true"
"udevadm trigger"
];
mkDiskType = osDisk: types.submodule ( mkDiskType = osDisk: types.submodule (
{ config, name, ... }: { { config, name, ... }: {
options = { options = {