mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
linux-boot: 'make-essential-device-nodes' root parameter is optional.
* gnu/build/linux-boot.scm (make-essential-device-nodes): Change 'root' to an optional parameter. * gnu/build/vm.scm (root-partition-initializer): Adjust accordingly.
This commit is contained in:
parent
6a488a3504
commit
683cba75ea
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
|
;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
|
||||||
;;;
|
;;;
|
||||||
|
@ -223,7 +223,7 @@ (define* (make-static-device-nodes linux-release-module-directory)
|
||||||
(call-with-input-file devname-name
|
(call-with-input-file devname-name
|
||||||
read-static-device-nodes))))
|
read-static-device-nodes))))
|
||||||
|
|
||||||
(define* (make-essential-device-nodes #:key (root "/"))
|
(define* (make-essential-device-nodes #:optional (root "/"))
|
||||||
"Make essential device nodes under ROOT/dev."
|
"Make essential device nodes under ROOT/dev."
|
||||||
;; The hand-made devtmpfs/udev!
|
;; The hand-made devtmpfs/udev!
|
||||||
|
|
||||||
|
|
|
@ -392,7 +392,7 @@ (define target-store
|
||||||
target))
|
target))
|
||||||
|
|
||||||
;; Populate /dev.
|
;; Populate /dev.
|
||||||
(make-essential-device-nodes #:root target)
|
(make-essential-device-nodes target)
|
||||||
|
|
||||||
;; Optionally, register the inputs in the image's store.
|
;; Optionally, register the inputs in the image's store.
|
||||||
(when register-closures?
|
(when register-closures?
|
||||||
|
|
Loading…
Reference in a new issue