Reload labels when probing partitions
This commit is contained in:
parent
64fb3b5208
commit
03a80b8583
1 changed files with 5 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue