Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jan 2001 20:32:14 -0800 (PST)
From:      jay.krell@cornell.edu;, jaykrell@hotmail.com;
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/24121: linprocfs setup/startup lost when port moved into system
Message-ID:  <200101070432.f074WEv01813@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         24121
>Category:       misc
>Synopsis:       linprocfs setup/startup lost when port moved into system
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 06 20:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jay Krell
>Release:        4.2
>Organization:
Jay Krell
>Environment:
$ uname -a
FreeBSD jaykfbsd.jaykhome 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:5
5 GMT 2000     jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386
$
>Description:
The Linux compatibility stuff never seems to load linprocfs and mount it. It appears linprocfs used to be a port, and was merged into FreeBSD itself. The port had some simple install stuff in its Makefile:

LINUX_DIR=	/compat/linux

CATEGORIES=	emulators
MAINTAINER=	vns@delta.odessa.ua

DISTNAME=       linprocfs
MASTER_SITES=	http://www.enst.fr/~beyssac/freebsd/

WRKSRC=		${WRKDIR}/sys/modules/linprocfs
MAKE_ARGS=	"KMODDIR=${PREFIX}/modules"

STARTUP=	${PREFIX}/etc/rc.d/linprocfs.sh 

pre-install: 
	[ -d ${PREFIX}/modules ] || mkdir -p ${PREFIX}/modules 
	${LN} -s /sbin/mount_std ${PREFIX}/sbin/mount_linprocfs
	${ECHO} "Installing ${PREFIX}/etc/rc.d/linprocfs.sh startup file.";
	${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/linprocfs.sh; 
	${ECHO} "[ -x ${PREFIX}/sbin/mount_linprocfs ] && kldload ${PREFIX}/modules/linprocfs.ko && ${PREFIX}/sbin/mount_linprocfs linprocfs ${LINUX_DIR}/proc && ${ECHO_MSG} -n ' linprocfs'" >> ${STARTUP}
	${CHMOD} ${BINMODE} ${STARTUP}
	${CHOWN} ${BINOWN}:${BINGRP} ${STARTUP}

This doesn't seem to occur anywhere in FreeBSD 4.2 (the port is not present).
>How-To-Repeat:
Just try to use a Linux binary that depends on /proc, like VMware, /usr/ports/emulators/vmware2
>Fix:
Include like a two line file in the product:
/usr/src/etc/rc.d/linprocfs.sh
	#!/bin/sh
	[ -x /sbin/mount_linprocfs ] && kldload /modules/linprocfs.ko && ${PREFIX}/sbin/mount_linprocfs linprocfs /compat/linux/proc linprocfs'

and/or have sysinstall add a line to /etc/fstab something like
linproc /compat/linux linprocfs rw 0 0

It should be simple, relative to everything else in FreeBSD, which means a bit too hard and I'm not sure exactly what to do.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101070432.f074WEv01813>