From 09b06b484495bec1f8657a2d5297c66ef33cb073 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 10 Jul 2023 15:10:22 +0100 Subject: [PATCH] synit: run preLvmCommands --- nixos/modules/synit/boot/stage-1-init.sh | 3 +++ nixos/modules/synit/boot/stage-1.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/synit/boot/stage-1-init.sh b/nixos/modules/synit/boot/stage-1-init.sh index ea43934..7138556 100644 --- a/nixos/modules/synit/boot/stage-1-init.sh +++ b/nixos/modules/synit/boot/stage-1-init.sh @@ -250,6 +250,9 @@ mdevd_pid=$! mdevd-coldplug -O4 -v 3 +@preLVMCommands@ + + if test -n "$debug1devices"; then fail; fi diff --git a/nixos/modules/synit/boot/stage-1.nix b/nixos/modules/synit/boot/stage-1.nix index 5f42c9e..529ac4d 100644 --- a/nixos/modules/synit/boot/stage-1.nix +++ b/nixos/modules/synit/boot/stage-1.nix @@ -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