Bug#300963: Use linprocfs for /proc (on GNU/kFreeBSD)

Robert Millan Robert Millan <rmh@debian.org>, 300963@bugs.debian.org
Wed, 23 Mar 2005 00:48:06 +0100


This is a multi-part MIME message sent by reportbug.

--===============0800368440==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: initscripts
Version: 2.86.ds1-1+kbsd.1
Severity: wishlist
Tags: patch

Hi,

GNU/kFreeBSD uses linprocfs for /proc.  This patch fixes sysvinit to detect this
filesystem in its lists of virtual filesystems, and also to use it for /proc
instead of "proc" or "procfs" when running on GNU/kFreeBSD.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i686)
Kernel: GNU/kFreeBSD 5.3-5
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages initscripts depends on:
ii  coreutils                 5.2.1-2        The GNU core utilities
ii  dpkg                      1.10.27+kbsd.1 Package maintenance system for Deb
ii  e2fsprogs                 1.36release-1  ext2 file system utilities and lib
ii  libc0.1                   2.3-1+kbsd.9   GNU C Library: Shared libraries an
ii  util-linux                2.12-7+kbsd.1  Miscellaneous system utilities

-- no debconf information

--===============0800368440==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="sysvinit.diff"

diff -ur sysvinit-2.86.ds1.old/debian/initscripts/etc/init.d/mountvirtfs sysvinit-2.86.ds1/debian/initscripts/etc/init.d/mountvirtfs
--- sysvinit-2.86.ds1.old/debian/initscripts/etc/init.d/mountvirtfs	2005-03-22 19:49:26.000000000 +0100
+++ sysvinit-2.86.ds1/debian/initscripts/etc/init.d/mountvirtfs	2005-03-22 19:50:15.000000000 +0100
@@ -60,6 +60,9 @@
 			Linux|GNU)
 				TYPE=proc
 				;;
+			*FreeBSD)
+				TYPE=linprocfs
+				;;
 			*)
 				TYPE=procfs
 				;;
diff -ur sysvinit-2.86.ds1.old/debian/initscripts/etc/init.d/umountfs sysvinit-2.86.ds1/debian/initscripts/etc/init.d/umountfs
--- sysvinit-2.86.ds1.old/debian/initscripts/etc/init.d/umountfs	2005-03-22 19:49:26.000000000 +0100
+++ sysvinit-2.86.ds1/debian/initscripts/etc/init.d/umountfs	2005-03-22 19:51:37.000000000 +0100
@@ -16,7 +16,7 @@
 #	Umount all filesystems except the virtual ones.
 #
 echo -n "Unmounting local filesystems..."
-umount -tnoproc,noprocfs,nodevfs,nosysfs,nousbfs,nousbdevfs,nodevpts -d -a -r
+umount -tnoproc,noprocfs,nolinprocfs,nodevfs,nosysfs,nousbfs,nousbdevfs,nodevpts -d -a -r
 echo "done."
 
 # This is superfluous.
diff -ur sysvinit-2.86.ds1.old/debian/initscripts/etc/init.d/umountnfs.sh sysvinit-2.86.ds1/debian/initscripts/etc/init.d/umountnfs.sh
--- sysvinit-2.86.ds1.old/debian/initscripts/etc/init.d/umountnfs.sh	2005-03-22 19:49:26.000000000 +0100
+++ sysvinit-2.86.ds1/debian/initscripts/etc/init.d/umountnfs.sh	2005-03-22 19:50:38.000000000 +0100
@@ -51,7 +51,7 @@
 			nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda)
 				DIRS="$DIR $DIRS"
 				;;
-			proc|procfs|devfs|devpts|usbfs|usbdevfs|sysfs)
+			proc|procfs|linprocfs|devfs|devpts|usbfs|usbdevfs|sysfs)
 				DIRS="$DIR $DIRS"
 				;;
 		esac


--===============0800368440==--