build: linux-boot: Expound docstring of the 'boot-system' procedure.

* gnu/build/linux-boot.scm (boot-system): Document the Linux command-line
parameters it understands and split a long string over two lines.
This commit is contained in:
Maxim Cournoyer 2022-02-17 13:33:19 -05:00
parent 12566aabe7
commit e9f9f291ed
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -499,7 +499,9 @@ (define* (boot-system #:key
KEYMAP-FILE is true), then setting up QEMU guest networking if KEYMAP-FILE is true), then setting up QEMU guest networking if
QEMU-GUEST-NETWORKING? is true, calling PRE-MOUNT, mounting the file systems QEMU-GUEST-NETWORKING? is true, calling PRE-MOUNT, mounting the file systems
specified in MOUNTS, and finally booting into the new root if any. The initrd specified in MOUNTS, and finally booting into the new root if any. The initrd
supports kernel command-line options '--load', '--root', and '--repl'. supports kernel command-line options '--load', '--root', and '--repl'. It
also honors a subset of the documented Linux kernel command-line parameters
such as 'fsck.mode', 'resume' and 'rootdelay'.
Mount the root file system, specified by the '--root' command-line argument, Mount the root file system, specified by the '--root' command-line argument,
if any. if any.
@ -596,9 +598,8 @@ (define (repair fs)
(let ((root-delay (and=> (find-long-option "rootdelay" args) (let ((root-delay (and=> (find-long-option "rootdelay" args)
string->number))) string->number)))
(when root-delay (when root-delay
(format #t (format #t "Pausing for rootdelay=~a seconds before mounting \
"Pausing for rootdelay=~a seconds before mounting the root file system...\n" the root file system...\n" root-delay)
root-delay)
(sleep root-delay))) (sleep root-delay)))
;; Prepare the real root file system under /root. ;; Prepare the real root file system under /root.