diff options
| author | Jack Hill <jackhill@jackhill.us> | 2021-07-08 22:48:53 -0400 |
|---|---|---|
| committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2022-09-04 02:00:00 +0200 |
| commit | ec16f88522041dc285a35705ff9ee95672b78143 (patch) | |
| tree | 9c3e369064afb28221423e46330a555425f7ce14 /gnu/build/linux-boot.scm | |
| parent | 0f88acb9fa8f7bbdfb2a647907fe63b1974ab824 (diff) | |
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>
Diffstat (limited to 'gnu/build/linux-boot.scm')
| -rw-r--r-- | gnu/build/linux-boot.scm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gnu/build/linux-boot.scm b/gnu/build/linux-boot.scm index 7d415376521..84726363c0b 100644 --- a/gnu/build/linux-boot.scm +++ b/gnu/build/linux-boot.scm | |||
| @@ -589,15 +589,6 @@ upon error." | |||
| 589 | (load-linux-modules-from-directory linux-modules | 589 | (load-linux-modules-from-directory linux-modules |
| 590 | linux-module-directory) | 590 | linux-module-directory) |
| 591 | 591 | ||
| 592 | (unless (or (member "hibernate=noresume" args) | ||
| 593 | ;; Also handle the equivalent old-style argument. | ||
| 594 | ;; See Documentation/admin-guide/kernel-parameters.txt. | ||
| 595 | (member "noresume" args)) | ||
| 596 | ;; Try to resume immediately after loading (storage) modules | ||
| 597 | ;; but before any on-disk file systems have been mounted. | ||
| 598 | (false-if-exception ; failure is not fatal | ||
| 599 | (resume-if-hibernated (find-long-option "resume" args)))) | ||
| 600 | |||
| 601 | (when keymap-file | 592 | (when keymap-file |
| 602 | (let ((status (system* "loadkeys" keymap-file))) | 593 | (let ((status (system* "loadkeys" keymap-file))) |
| 603 | (unless (zero? status) | 594 | (unless (zero? status) |
| @@ -631,6 +622,15 @@ the root file system...\n" root-delay) | |||
| 631 | (unless (pre-mount) | 622 | (unless (pre-mount) |
| 632 | (error "pre-mount actions failed"))) | 623 | (error "pre-mount actions failed"))) |
| 633 | 624 | ||
| 625 | (unless (or (member "hibernate=noresume" args) | ||
| 626 | ;; Also handle the equivalent old-style argument. | ||
| 627 | ;; See Documentation/admin-guide/kernel-parameters.txt. | ||
| 628 | (member "noresume" args)) | ||
| 629 | ;; Try to resume immediately after loading (storage) modules | ||
| 630 | ;; but before any on-disk file systems have been mounted. | ||
| 631 | (false-if-exception ; failure is not fatal | ||
| 632 | (resume-if-hibernated (find-long-option "resume" args)))) | ||
| 633 | |||
| 634 | (setenv "EXT2FS_NO_MTAB_OK" "1") | 634 | (setenv "EXT2FS_NO_MTAB_OK" "1") |
| 635 | 635 | ||
| 636 | ;; Mount the root file system. | 636 | ;; Mount the root file system. |
