nixos/swap: trigger device readiness
Attempts to fix https://github.com/nixos/nixpkgs/issues/524389
This commit is contained in:
@@ -334,6 +334,7 @@ in
|
||||
)
|
||||
} ${sw.device} ${sw.deviceName}
|
||||
mkswap ${sw.realDevice}
|
||||
${lib.optionalString sw.isDevice "udevadm trigger ${sw.realDevice}"}
|
||||
''}
|
||||
'';
|
||||
enableStrictShellChecks = true;
|
||||
|
||||
Reference in New Issue
Block a user