Subject: Re: emulators/suse100_base: mtab problem under -current NetBSD/{amd64,i386}
To: pkgsrc users <pkgsrc-users@netbsd.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: pkgsrc-users
Date: 10/17/2007 21:29:12
On Wed, Oct 17, 2007 at 02:23:59PM -0400, Johnny C. Lam wrote:
> Nicolas Joly wrote:
> >Index: INSTALL
> >===================================================================
> >RCS file: /cvsroot/pkgsrc/emulators/suse100_base/INSTALL,v
> >retrieving revision 1.8
> >diff -u -p -r1.8 INSTALL
> >--- INSTALL	23 Aug 2007 21:50:23 -0000	1.8
> >+++ INSTALL	17 Oct 2007 17:09:09 -0000
> >@@ -142,7 +142,7 @@ POST-INSTALL)
> > 
> > 	# Make /etc/mtab usable for Linux programs.
> > 	${RM} -f ${EMULDIR}/etc/mtab
> >-	${LN} -fs ${EMULDIR}/proc/mounts ${EMULDIR}/etc/mtab
> >+	${LN} -fs ../proc/mounts ${EMULDIR}/etc/mtab
> 
> Maybe this should just be:
> 
> 	${LN} -fs /proc/mounts ${EMULDIR}/etc/mtab

It works too.

> Did NetBSD change the way that symlinks in /emul are resolved to their 
> targets?  I thought this used to work without changes on NetBSD 3.x.

Not sure about recently. But at least, on 2007/04, there was some
related namei changes for CHECK_ALT_xxx and stackgap allocation
removal. And, if i remember correctly, lookups outside the emulation
prefix (/emul/linux) were denied for the first pass; and then retried
with real root (/).

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.