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>
This commit is contained in:
Yelninei 2025-09-25 14:34:41 +00:00 committed by Ludovic Courtès
parent 9f8b1cfdf6
commit 9051aa1bd1
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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))