···495495 fi
496496fi
497497498498+@postResumeCommands@
499499+498500# If we have a path to an iso file, find the iso and link it to /dev/root
499501if [ -n "$isoPath" ]; then
500502 mkdir -p /findiso
+9-1
nixos/modules/system/boot/stage-1.nix
···316316 inherit (config.system.build) earlyMountScript;
317317318318 inherit (config.boot.initrd) checkJournalingFS verbose
319319- preLVMCommands preDeviceCommands postDeviceCommands postMountCommands preFailCommands kernelModules;
319319+ preLVMCommands preDeviceCommands postDeviceCommands postResumeCommands postMountCommands preFailCommands kernelModules;
320320321321 resumeDevices = map (sd: if sd ? device then sd.device else "/dev/disk/by-label/${sd.label}")
322322 (filter (sd: hasPrefix "/dev/" sd.device && !sd.randomEncryption.enable
···524524 Shell commands to be executed immediately after stage 1 of the
525525 boot has loaded kernel modules and created device nodes in
526526 {file}`/dev`.
527527+ '';
528528+ };
529529+530530+ boot.initrd.postResumeCommands = mkOption {
531531+ default = "";
532532+ type = types.lines;
533533+ description = lib.mdDoc ''
534534+ Shell commands to be executed immediately after attempting to resume.
527535 '';
528536 };
529537