[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/08: linux-boot: Resume from hibernation after pre-boot.
From: |
guix-commits |
Subject: |
01/08: linux-boot: Resume from hibernation after pre-boot. |
Date: |
Mon, 5 Sep 2022 09:04:37 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit ec16f88522041dc285a35705ff9ee95672b78143
Author: Jack Hill <jackhill@jackhill.us>
AuthorDate: Thu Jul 8 22:48:53 2021 -0400
linux-boot: Resume from hibernation after pre-boot.
* gnu/build/linux-boot.scm (boot-system): Call resume-if-hibernated
after pre-mount.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
---
gnu/build/linux-boot.scm | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/gnu/build/linux-boot.scm b/gnu/build/linux-boot.scm
index 7d41537652..84726363c0 100644
--- a/gnu/build/linux-boot.scm
+++ b/gnu/build/linux-boot.scm
@@ -589,15 +589,6 @@ upon error."
(load-linux-modules-from-directory linux-modules
linux-module-directory)
- (unless (or (member "hibernate=noresume" args)
- ;; Also handle the equivalent old-style argument.
- ;; See Documentation/admin-guide/kernel-parameters.txt.
- (member "noresume" args))
- ;; Try to resume immediately after loading (storage) modules
- ;; but before any on-disk file systems have been mounted.
- (false-if-exception ; failure is not fatal
- (resume-if-hibernated (find-long-option "resume" args))))
-
(when keymap-file
(let ((status (system* "loadkeys" keymap-file)))
(unless (zero? status)
@@ -631,6 +622,15 @@ the root file system...\n" root-delay)
(unless (pre-mount)
(error "pre-mount actions failed")))
+ (unless (or (member "hibernate=noresume" args)
+ ;; Also handle the equivalent old-style argument.
+ ;; See Documentation/admin-guide/kernel-parameters.txt.
+ (member "noresume" args))
+ ;; Try to resume immediately after loading (storage) modules
+ ;; but before any on-disk file systems have been mounted.
+ (false-if-exception ; failure is not fatal
+ (resume-if-hibernated (find-long-option "resume" args))))
+
(setenv "EXT2FS_NO_MTAB_OK" "1")
;; Mount the root file system.
- branch master updated (0f88acb9fa -> ca94157380), guix-commits, 2022/09/05
- 04/08: gnu: Add exult., guix-commits, 2022/09/05
- 08/08: gnu: mcelog: Use G-expressions., guix-commits, 2022/09/05
- 01/08: linux-boot: Resume from hibernation after pre-boot.,
guix-commits <=
- 06/08: gnu: gparted: Update to 1.4.0., guix-commits, 2022/09/05
- 05/08: gnu: chrony: Update to 4.3., guix-commits, 2022/09/05
- 07/08: gnu: mcelog: Update to 188., guix-commits, 2022/09/05
- 02/08: gnu: webkitgtk: Increase the CI time-out period., guix-commits, 2022/09/05
- 03/08: gnu: cpupower: Modernise., guix-commits, 2022/09/05