linux-boot: Fix noresume argument parsing.

* gnu/build/linux-boot.scm (boot-system): Check for "hibernate=noresume"
in addition to "noresume".
This commit is contained in:
Tobias Geerinckx-Rice 2020-12-15 21:55:34 +01:00
parent 59d97bb459
commit 2072f617ad
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -560,7 +560,10 @@ (define (device-string->file-system-device device-string)
(load-linux-modules-from-directory linux-modules
linux-module-directory)
(unless (member "noresume" args)
(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