linprocfs and linux_base port upgrade
Mars G. Miro
marsgmiro at gmail.com
Tue Feb 21 17:53:38 PST 2006
>>
>> Actually, this unmount ... remount situation is pretty evil. For
>> example, it prevents users from building linux_base in a jail. In
>> fact I'd like to switch to building packages in jails instead of
>> chroots on the package cluster, but this is the major reason I can't.
I have been able to build linux_base in a jail, but I had to turn on a
few sysctl jail knobs on the main host (see more below)
> Not to mention that the umount isn't always reliable for some reason:
> the linux_base-8 package build often fails with this:
> ===> Checking if emulators/linux_base-8 already installed
> Un-mounting linprocfs...
> kern.fallback_elf_brand: -1 -> 3
> redhat-release-8.0-8.noarch.rpm
> glibc-common-2.3.2-4.80.8.i386.rpm
> glibc-2.3.2-4.80.8.i386.rpm
> setup-2.5.20-1.noarch.rpm
> filesystem-2.1.6-5.noarch.rpm
> unpacking of archive failed on file /proc: cpio: chown failed - Operation not
> supported
I usually have, in /etc/sysctl.conf:
...
# for the Jails
security.jail.allow_raw_sockets=1
security.jail.sysvipc_allowed=1
security.jail.chflags_allowed=1
...
I think that last error you got has something todo w/ enabling the
chflags sysctl jail.
For the record:
mars at jail:~> uname -a
FreeBSD jail.XXXXXXXXXXX 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Thu
Feb 16 17:32:02 PHT 2006
root at alcatraz.XXXXXXXXXXX:/usr/obj/usr/src/sys/XXXXXX amd64
mars at jail:~> pkg_info
autoconf-2.13.000227_5 Automatically configure source code on many
Un*x platforms
automake-1.4.6_2 GNU Standards-compliant Makefile generator (1.4)
expat-2.0.0 XML 1.0 parser written in C
fontconfig-2.3.2_1,1 An XML-based font configuration API for X Windows
freetype2-2.1.10_2 A free and portable TrueType font rendering engine
gettext-0.14.5_1 GNU gettext package
glib-2.8.6 Some useful routines of C programming (current stable versi
gmake-3.80_2 GNU version of 'make' utility
imake-6.9.0 Imake and other utilities from X.Org
javavmwrapper-2.0_6 Wrapper script for various Java Virtual Machines
libdrm-2.0 Userspace interface to kernel Direct Rendering Module servi
libiconv-1.9.2_1 A character set conversion library
libtool-1.3.5_2 Generic shared library support script (1.3)
libtool-1.5.22_1 Generic shared library support script (1.5)
linux-XFree86-libs-4.3.99.902_7 XFree86 libraries, Linux binary
linux-expat-1.95.7 Linux/i386 binary port of Expat XML-parsing library
linux-fontconfig-2.2.3_2 Linux/i386 binary of Fontconfig
linux-sun-jdk-1.4.2.10 Sun Java Development Kit 1.4 for Linux
linux_base-8-8.0_13 Base set of packages needed in Linux mode (for i386/amd64)
m4-1.4.4 GNU m4
open-motif-2.2.3_2 Motif X11 Toolkit (industry standard GUI (IEEE 1295))
perl-5.8.7_2 Practical Extraction and Report Language
pkgconfig-0.20 A utility to retrieve information about installed libraries
popt-1.7 A getopt(3) like library with a number of enhancements, fro
rpm-3.0.6_10 The Red Hat Package Manager
unzip-5.52_2 List, test and extract compressed files in a ZIP archive
xorg-libraries-6.9.0 X11 libraries and headers from X.Org
zip-2.31 Create/update ZIP files compatible with pkzip
mars at jail:~> sysctl -a |grep jail
kern.hostname: jail.XXXXXXXXXXX
security.jail.jailed: 1
security.jail.chflags_allowed: 1
security.jail.allow_raw_sockets: 1
security.jail.enforce_statfs: 2
security.jail.sysvipc_allowed: 1
security.jail.socket_unixiproute_only: 1
security.jail.set_hostname_allowed: 1
> *** Error code 1
> Kris
cheers
mars
More information about the freebsd-emulation
mailing list