mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
linux-boot: Update 'make-hurd-device-nodes'.
* gnu/build/linux-boot.scm (make-hurd-device-nodes): Avoid de-duplication of device mount points; also create mount points for /servers/.
This commit is contained in:
parent
1428926f1f
commit
6cea61f2fa
1 changed files with 15 additions and 0 deletions
|
@ -337,6 +337,7 @@ (define (scope dir)
|
|||
(for-each (lambda (file)
|
||||
(call-with-output-file (scope file)
|
||||
(lambda (port)
|
||||
(display file port) ;avoid hard-linking
|
||||
(chmod port #o666))))
|
||||
'("dev/null"
|
||||
"dev/zero"
|
||||
|
@ -347,6 +348,20 @@ (define (scope dir)
|
|||
;; console-run on first boot.
|
||||
|
||||
(mkdir (scope "servers"))
|
||||
(for-each (lambda (file)
|
||||
(call-with-output-file (scope (string-append "servers/" file))
|
||||
(lambda (port)
|
||||
(display file port) ;avoid hard-linking
|
||||
(chmod port #o444))))
|
||||
'("startup"
|
||||
"exec"
|
||||
"proc"
|
||||
"password"
|
||||
"default-pager"
|
||||
"crash-dump-core"
|
||||
"kill"
|
||||
"suspend"))
|
||||
|
||||
(mkdir (scope "servers/socket"))
|
||||
;; Don't create /servers/socket/1 & co: runsystem does that on first boot.
|
||||
|
||||
|
|
Loading…
Reference in a new issue