mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Respect ‘rootdelay’ kernel command-line argument.
* gnu/build/linux-boot.scm (boot-system): Sleep for "rootdelay=SECONDS" when specified on the kernel command line.
This commit is contained in:
parent
fa0dc1229c
commit
9c28fdcae3
1 changed files with 10 additions and 0 deletions
|
@ -585,6 +585,16 @@ upon error."
|
||||||
(unless (configure-qemu-networking)
|
(unless (configure-qemu-networking)
|
||||||
(display "network interface is DOWN\n")))
|
(display "network interface is DOWN\n")))
|
||||||
|
|
||||||
|
;; A big ugly hammer, to be used only for debugging and in desperate
|
||||||
|
;; situations where no proper device synchonisation is possible.
|
||||||
|
(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.
|
;; Prepare the real root file system under /root.
|
||||||
(unless (file-exists? "/root")
|
(unless (file-exists? "/root")
|
||||||
(mkdir "/root"))
|
(mkdir "/root"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue