[Pkg-sysvinit-devel] Bug#798406: sysv-rc: Also support mounting proc on GNU/Hurd

Samuel Thibault sthibault at debian.org
Tue Sep 8 20:49:21 UTC 2015


Package: sysv-rc
Version: 2.88dsf-59.2
Severity: normal
User: debian-hurd at lists.debian.org
Usertags: hurd

Hello,

/etc/init.d/rc has a tweak for kFreeBSD to mount /proc if it's not
mounted already (mount -t linprocfs linprocfs /proc)

It would be useful to do this for GNU/Hurd too, see attached patch.

Samuel

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sysv-rc depends on:
ii  debconf [debconf-2.0]  1.5.57
ii  insserv                1.14.0-5
ii  startpar               0.59-3
ii  sysvinit-utils         2.88dsf-59.2

Versions of packages sysv-rc recommends:
ii  lsb-base  4.1+Debian14

Versions of packages sysv-rc suggests:
pn  bum  <none>

-- no debconf information

-- 
Samuel
"I once witnessed a long-winded, month-long flamewar over the use of
mice vs. trackballs...It was very silly."
(By Matt Welsh)
-------------- next part --------------
--- ./debian/src/sysv-rc/etc/init.d/rc.orig	2015-09-08 22:21:09.877779647 +0200
+++ ./debian/src/sysv-rc/etc/init.d/rc	2015-09-08 22:21:28.685686816 +0200
@@ -77,9 +77,11 @@
 	CONCURRENCY="none"
 fi
 if ! test -e /proc/stat; then
+	# startpar requires /proc/stat
 	if [ "$(uname)" = "GNU/kFreeBSD" ] ; then
-		# startpar requires /proc/stat
 		mount -t linprocfs linprocfs /proc
+	elif [ "$(uname)" = "GNU" ] ; then
+		mount -t proc none /proc
 	fi
 fi
 if [ -x /lib/startpar/startpar ] ; then


More information about the Pkg-sysvinit-devel mailing list