[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/295: hurd-boot: Mount /proc, add /etc/mtab.
From: |
guix-commits |
Subject: |
02/295: hurd-boot: Mount /proc, add /etc/mtab. |
Date: |
Mon, 27 Jul 2020 06:24:59 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 65d95e5d852e47343b9acc1717918c9db7364c01
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Jun 25 17:07:25 2020 +0200
hurd-boot: Mount /proc, add /etc/mtab.
* gnu/build/hurd-boot.scm (set-hurd-device-translators): Mount /proc. Add
symlink to /etc/mtab into /proc/mounts.
---
gnu/build/hurd-boot.scm | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/gnu/build/hurd-boot.scm b/gnu/build/hurd-boot.scm
index 8c4f0ac..adc8b4c 100644
--- a/gnu/build/hurd-boot.scm
+++ b/gnu/build/hurd-boot.scm
@@ -191,7 +191,8 @@ set."
"10.0.2.15" ;the default QEMU guest IP
"--netmask" "255.255.255.0"
"--gateway" "10.0.2.2"
- "--ipv6" "/servers/socket/16"))))
+ "--ipv6" "/servers/socket/16"))
+ ("proc" ("/hurd/procfs" "--stat-mode=444"))))
(define devices
'(("dev/full" ("/hurd/null" "--full") #o666)
@@ -242,7 +243,12 @@ set."
(mkdir* "dev/fd")
(false-if-EEXIST (symlink "/dev/fd/0" (scope "dev/stdin")))
(false-if-EEXIST (symlink "/dev/fd/1" (scope "dev/stdout")))
- (false-if-EEXIST (symlink "/dev/fd/2" (scope "dev/stderr"))))
+ (false-if-EEXIST (symlink "/dev/fd/2" (scope "dev/stderr")))
+
+ ;; 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")))
(define* (boot-hurd-system #:key (on-error 'debug))
- branch wip-desktop created (now 956abd0), guix-commits, 2020/07/27
- 01/295: hurd-boot: Remove duplicate calls to 'scope'., guix-commits, 2020/07/27
- 03/295: gnu: emacs-sly: Update to 20200626., guix-commits, 2020/07/27
- 07/295: gnu: opusfile: Do not build static libraries., guix-commits, 2020/07/27
- 09/295: gnu: spdlog: Update to 1.6.1., guix-commits, 2020/07/27
- 02/295: hurd-boot: Mount /proc, add /etc/mtab.,
guix-commits <=
- 04/295: gnu: slynk: Update to 20200626., guix-commits, 2020/07/27
- 05/295: gnu: Add dhewm3., guix-commits, 2020/07/27
- 06/295: gnu: opusfile: Update to 0.12., guix-commits, 2020/07/27
- 20/295: gnu: libcyaml: Remove unused input., guix-commits, 2020/07/27
- 11/295: gnu: libconfuse: Do not build static libraries., guix-commits, 2020/07/27
- 18/295: gnu: libzip: Update to 1.7.1., guix-commits, 2020/07/27
- 10/295: gnu: libconfuse: Update to 3.3., guix-commits, 2020/07/27
- 26/295: gnu: Add autofs., guix-commits, 2020/07/27
- 34/295: gnu: dropbear: Update to 2020.80 [fix for CVE-2018-20685]., guix-commits, 2020/07/27
- 24/295: gnu: python-setproctitle: Fix build., guix-commits, 2020/07/27