* [bug#48880] [PATCH] gnu: Respect ‘rootdelay’ kernel command-line argument.
@ 2021-06-06 19:04 Tobias Geerinckx-Rice via Guix-patches via
2021-06-16 10:48 ` bug#48880: " Tobias Geerinckx-Rice via Guix-patches via
0 siblings, 1 reply; 2+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2021-06-06 19:04 UTC (permalink / raw)
To: 48880
* gnu/build/linux-boot.scm (boot-system): Sleep for "rootdelay=SECONDS"
when specified on the kernel command line.
---
gnu/build/linux-boot.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/build/linux-boot.scm b/gnu/build/linux-boot.scm
index 37c0dcb265..e1014c7efe 100644
--- a/gnu/build/linux-boot.scm
+++ b/gnu/build/linux-boot.scm
@@ -594,6 +594,14 @@ upon error."
(unless (configure-qemu-networking)
(display "network interface is DOWN\n")))
+ (let ((root-delay (and=> (find-long-option "rootdelay" args)
+ string->number)))
+ (when root-delay
+ (format #t
+ "Pausing for rootdelay=~a seconds before mounting the root file system...\n"
+ root-delay)
+ (sleep root-delay)))
+
;; Prepare the real root file system under /root.
(unless (file-exists? "/root")
(mkdir "/root"))
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#48880: gnu: Respect ‘rootdelay’ kernel command-line argument.
2021-06-06 19:04 [bug#48880] [PATCH] gnu: Respect ‘rootdelay’ kernel command-line argument Tobias Geerinckx-Rice via Guix-patches via
@ 2021-06-16 10:48 ` Tobias Geerinckx-Rice via Guix-patches via
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2021-06-16 10:48 UTC (permalink / raw)
To: 48880-done
[-- Attachment #1: Type: text/plain, Size: 141 bytes --]
Pushed as 9c28fdcae330e91667b4b3e1058025bef250e6dd.
Too late to help
<https://logs.guix.gnu.org/guix/2021-06-05.log#193653>, but oh
well.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-16 10:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-06 19:04 [bug#48880] [PATCH] gnu: Respect ‘rootdelay’ kernel command-line argument Tobias Geerinckx-Rice via Guix-patches via
2021-06-16 10:48 ` bug#48880: " Tobias Geerinckx-Rice via Guix-patches via
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.