services: agetty: Explicitly depend on (gnu build linux-boot).
* gnu/services/base.scm (default-serial-port): Wrap in 'with-imported-modules'.
This commit is contained in:
parent
1994422752
commit
62c2217570
|
@ -939,6 +939,8 @@ the message of the day, among other things."
|
||||||
(define (default-serial-port)
|
(define (default-serial-port)
|
||||||
"Return a gexp that determines a reasonable default serial port
|
"Return a gexp that determines a reasonable default serial port
|
||||||
to use as the tty. This is primarily useful for headless systems."
|
to use as the tty. This is primarily useful for headless systems."
|
||||||
|
(with-imported-modules (source-module-closure
|
||||||
|
'((gnu build linux-boot))) ;for 'find-long-options'
|
||||||
#~(begin
|
#~(begin
|
||||||
;; console=device,options
|
;; console=device,options
|
||||||
;; device: can be tty0, ttyS0, lp0, ttyUSB0 (serial).
|
;; device: can be tty0, ttyS0, lp0, ttyUSB0 (serial).
|
||||||
|
@ -968,7 +970,7 @@ to use as the tty. This is primarily useful for headless systems."
|
||||||
;; Extract device name from first spec.
|
;; Extract device name from first spec.
|
||||||
(match (string-tokenize spec not-comma)
|
(match (string-tokenize spec not-comma)
|
||||||
((device-name _ ...)
|
((device-name _ ...)
|
||||||
device-name)))))))
|
device-name))))))))
|
||||||
|
|
||||||
(define agetty-shepherd-service
|
(define agetty-shepherd-service
|
||||||
(match-lambda
|
(match-lambda
|
||||||
|
|
Loading…
Reference in New Issue