From 448fe5db58cddfcc9258a71ca0c4c11d19ca1ecb Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Wed, 21 Sep 2022 01:08:17 +0200 Subject: [PATCH] Resume from hibernate before postDeviceCommands Should work for me, because I don't want to be asked for ZFS credentials when I can resume --- nixos/modules/system/boot/stage-1-init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh index 994aa0e33cbfaea..21fa24938d263f5 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -268,7 +268,6 @@ lvm vgchange -ay if test -n "$debug1devices"; then fail; fi -@postDeviceCommands@ # Check the specified file system, if appropriate. @@ -477,6 +476,8 @@ if test -e /sys/power/resume -a -e /sys/power/disk; then fi fi +@postDeviceCommands@ + # If we have a path to an iso file, find the iso and link it to /dev/root if [ -n "$isoPath" ]; then mkdir -p /findiso