~ruther/guix-local

9051aa1bd14559f37ae378105d00fc2d2ec4bbca — Yelninei 5 months ago 9f8b1cf
hurd-boot: change /etc/mtab to /var/run/mtab.

This corresponds to "_PATH_MOUNTED" in paths.h from libc.

* gnu/build/hurd-boot.scm (set-hurd-device-translators): Change etc/mtab to var/run/mtab.

Change-Id: I688289fe4b8143ae14a8eef5ba1625c4ebd2a209
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 4 insertions(+), 4 deletions(-)

M gnu/build/hurd-boot.scm
M gnu/build/hurd-boot.scm => gnu/build/hurd-boot.scm +4 -4
@@ 294,10 294,10 @@ set."
  (false-if-EEXIST (symlink "/servers/socket/2" (scope "servers/socket/inet")))
  (false-if-EEXIST (symlink "/servers/socket/26" (scope "servers/socket/inet6")))

  ;; Make sure /etc/mtab is a symlink to /proc/mounts.
  (false-if-exception (delete-file (scope "etc/mtab")))
  (mkdir* (scope "etc"))
  (symlink "/proc/mounts" (scope "etc/mtab")))
  ;; Make sure /var/run/mtab is a symlink to /proc/mounts.
  (false-if-exception (delete-file (scope "var/run/mtab")))
  (mkdir* (scope "var/run"))
  (symlink "/proc/mounts" (scope "var/run/mtab")))


(define* (boot-hurd-system #:key (on-error 'debug))