Message ID | 20210606190430.28191-1-me@tobias.gr |
---|---|
State | Accepted |
Headers | show |
Series | [bug#48880] gnu: Respect ‘rootdelay’ kernel command-line argument. | expand |
Context | Check | Description |
---|---|---|
cbaines/comparison | success | View comparision |
cbaines/git branch | success | View Git branch |
cbaines/applying patch | success | View Laminar job |
cbaines/issue | success | View issue |
Pushed as 9c28fdcae330e91667b4b3e1058025bef250e6dd. Too late to help <https://logs.guix.gnu.org/guix/2021-06-05.log#193653>, but oh well.
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"))