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

Bug#659480: startpar needs /proc/stat but is called before /proc is mounted



Package: sysv-rc
Version: 2.88dsf-22
Severity: normal
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd

On GNU/kFreeBSD there's no pre-init ramdisk. When init is called, /proc
hasn't been mounted yet, so before calling startpar you need to mount /proc.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sysv-rc depends on:
ii  debconf [debconf-2.0]  1.5.41
ii  insserv                1.14.0-2.2
ii  sysvinit-utils         2.88dsf-22

Versions of packages sysv-rc recommends:
ii  lsb-base  3.2-28.1

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

-- debconf information excluded
=== modified file 'debian/src/sysv-rc/etc/init.d/rc'
--- debian/src/sysv-rc/etc/init.d/rc	2012-02-11 12:34:33 +0000
+++ debian/src/sysv-rc/etc/init.d/rc	2012-02-11 12:39:39 +0000
@@ -86,6 +86,10 @@ if [ "none" != "$CONCURRENCY" ] ; then
 	if test -e /etc/init.d/.legacy-bootordering ; then
 		CONCURRENCY="none"
 	fi
+	if [ "$(uname)" = "GNU/kFreeBSD" ] ; then
+		# startpar requires /proc/stat
+		mount -t linprocfs linprocfs /proc
+	fi
 	startpar -v      > /dev/null 2>&1 || CONCURRENCY="none"
 fi
 


Reply to: