commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 01/01: Make procfs appear in /proc/mounts, for d-i


From: Samuel Thibault
Subject: [hurd] 01/01: Make procfs appear in /proc/mounts, for d-i
Date: Tue, 11 Nov 2014 21:46:14 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch master
in repository hurd.

commit 1b5cbcebb8cac6f7b3ccdfec4d692435dc32fef0
Author: Samuel Thibault <address@hidden>
Date:   Tue Nov 11 21:45:37 2014 +0000

    Make procfs appear in /proc/mounts, for d-i
---
 debian/changelog                     |  7 +++++++
 debian/patches/git-proc-mounts.patch | 33 +++++++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 41 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index caf3c9c..0f48e9e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+hurd (1:0.5.git20141108-4) UNRELEASED; urgency=medium
+
+  * patches/git-proc-mounts.patch: Make procfs appear in /proc/mounts, for
+    d-i.
+
+ -- Samuel Thibault <address@hidden>  Tue, 11 Nov 2014 21:45:10 +0000
+
 hurd (1:0.5.git20141108-3) unstable; urgency=medium
 
   * control:
diff --git a/debian/patches/git-proc-mounts.patch 
b/debian/patches/git-proc-mounts.patch
new file mode 100644
index 0000000..cb8d4e3
--- /dev/null
+++ b/debian/patches/git-proc-mounts.patch
@@ -0,0 +1,33 @@
+commit 324c9cdbcd3644a0f8eb467b1ea61b9ff889ae7a
+Author: Samuel Thibault <address@hidden>
+Date:   Tue Nov 11 22:43:22 2014 +0100
+
+    Make procfs appear in /proc/mounts
+    
+    d-i needs to be able to check whether /proc is mounted or not.
+    
+    * procfs/main.c (netfs_get_source): New function.
+
+diff --git a/procfs/main.c b/procfs/main.c
+index 54e9682..a620ba1 100644
+--- a/procfs/main.c
++++ b/procfs/main.c
+@@ -259,6 +259,18 @@ netfs_append_args (char **argz, size_t *argz_len)
+ 
+   return err;
+ }
++
++/* The user may define this function.  The function must set source to
++   the source of CRED. The function may return an EOPNOTSUPP to
++   indicate that the concept of a source device is not applicable. The
++   default function always returns EOPNOTSUPP. */
++error_t netfs_get_source (struct protid *cred, char *source, size_t 
source_len)
++{
++  if (! cred)
++    return EOPNOTSUPP;
++  snprintf(source, source_len, "proc");
++  return 0;
++}
+ 
+ error_t
+ root_make_node (struct ps_context *pc, struct node **np)
diff --git a/debian/patches/series b/debian/patches/series
index 254bc6a..c46e8c6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -41,4 +41,5 @@ mount.patch
 proc_set_init_task.patch
 xkb-compat.patch
 git-vm_map.patch
+git-proc-mounts.patch
 newRPC.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]