linux-boot: Allow the root file system to be mounted via NFS.
* gnu/build/linux-boot.scm (boot-system) Treat a root option with ":/" as an nfs source and avoid to call 'canonicalize-device-spec' for it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
5af2a8fe96
commit
afc57916e5
@ -534,10 +534,13 @@ upon error."
|
|||||||
;; The "--root=SPEC" kernel command-line option always provides a
|
;; The "--root=SPEC" kernel command-line option always provides a
|
||||||
;; string, but the string can represent a device, a UUID, or a
|
;; string, but the string can represent a device, a UUID, or a
|
||||||
;; label. So check for all three.
|
;; label. So check for all three.
|
||||||
(let ((root (cond ((string-prefix? "/" root) root)
|
(let ((device-spec (cond ((string-prefix? "/" root) root)
|
||||||
((uuid root) => identity)
|
((uuid root) => identity)
|
||||||
(else (file-system-label root)))))
|
((string-contains root ":/") #f) ; nfs
|
||||||
(mount-root-file-system (canonicalize-device-spec root)
|
(else (file-system-label root)))))
|
||||||
|
(mount-root-file-system (if device-spec
|
||||||
|
(canonicalize-device-spec device-spec)
|
||||||
|
root)
|
||||||
root-fs-type
|
root-fs-type
|
||||||
#:volatile-root? volatile-root?
|
#:volatile-root? volatile-root?
|
||||||
#:flags root-fs-flags
|
#:flags root-fs-flags
|
||||||
|
Loading…
Reference in New Issue
Block a user