synit: run preLvmCommands

This commit is contained in:
Emery Hemingway 2023-07-10 15:10:22 +01:00
parent 5ce3ca2121
commit 09b06b4844
2 changed files with 4 additions and 1 deletions

View File

@ -250,6 +250,9 @@ mdevd_pid=$!
mdevd-coldplug -O4 -v 3
@preLVMCommands@
if test -n "$debug1devices"; then fail; fi

View File

@ -299,7 +299,7 @@ let
inherit (config.system.build) earlyMountScript;
inherit (config.boot.initrd) checkJournalingFS verbose
preDeviceCommands postDeviceCommands postMountCommands preFailCommands kernelModules;
preDeviceCommands postDeviceCommands postMountCommands preFailCommands kernelModules preLVMCommands;
resumeDevices = map (sd: if sd ? device then sd.device else "/dev/disk/by-label/${sd.label}")
(filter (sd: hasPrefix "/dev/" sd.device && !sd.randomEncryption.enable