Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Feb 2004 14:14:11 -0500
From:      "Dan Langille" <dan@langille.org>
To:        marcel@FreeBSD.org
Cc:        ports@freebsd.org
Subject:   Jail for emulators/linux_base
Message-ID:  <4024F2B3.16448.B4BF9D9@localhost>

next in thread | raw e-mail | index | archive | help
In emulators/linux_base/Makefile, I see this:

.if !defined(BATCH) && !exists(${LINUXBASE}/dev/null)
        @${ECHO_MSG} ""
        @${ECHO_MSG} "You need to create the null device in your 
jailed Linux environment. Run this"
        @${ECHO_MSG} "outside the jail, then press enter:"
        @${ECHO_MSG} ""
        @${ECHO_MSG} "mkdir -m 0755 -p <Jail root dir>/dev"
        @${ECHO_MSG} "rm -f <Jail root dir>${LINUXBASE}/dev/null"
        @${ECHO_MSG} "mknod <Jail root dir>${LINUXBASE}/dev/null c 2 
2"
        @${ECHO_MSG} "chmod 666 <Jail root dir>${LINUXBASE}/dev/null"
        @${ECHO_MSG} ""
        @${SH} -c "read line"
.endif

Would it not be better to use ${LINUXBASE} instead of <Jail root 
dir>?  As it stands, the user (namely me) has no idea where <Jail 
root dir> should be.

-- 
Dan Langille : http://www.langille.org/
BSDCan - http://www.bsdcan.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4024F2B3.16448.B4BF9D9>