Reload labels when probing partitions

This commit is contained in:
Manuel Thalmann 2024-09-21 15:22:04 +02:00
parent 5c0a88f47e
commit 467aca389f

View file

@ -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 = {