On Thu, Sep 25, 2014 at 11:07 PM, Kurt Jaeger <li...@opsec.eu> wrote: > Hi! > >> >> If this is mandatory, why the 'linux_base-f10' package doesn't >> >> check/update it by itself? > >> > Because a pkg or port does not automatically change values in /etc/rc.conf. >> > That should be a concious decision of the admin. >> >> But how could I know all this before the installation? > > I think in the past the module was automatically loaded, have a look > at pkg-install, where it is done. I'm not sure whether pkg-install > is still used in the new pkg(8) area.
It seems it is. pkg-install of the linux_base-f10 has following code: case "$2" in PRE-INSTALL) if [ "`/sbin/sysctl -n compat.linux.osrelease`"x = "x" ]; then echo 'linuxulator is not (kld)loaded, exiting' exit 1 fi if [ -z "`kldstat -v | grep -E 'linux(aout|elf)'`" ]; then echo 'Linux mode is not enabled.' echo 'Loading linux kernel module now...' if ! kldload linux; then echo 'The linux kernel module could not be loaded.' echo 'Please enable linux mode manually and retry.' exit 1 fi fi ;; This is exactly where it failed in my case. See logs in my first email. Firstly it's failed on running sysctl, then it printed out the 'linuxulator is not (kld)loaded, exiting' error message: sysctl: unknown oid 'compat.linux.osrelease': No such file or directory linuxulator is not (kld)loaded, exiting pkg: PRE-INSTALL script failed And it happens before the linux kernel module is loaded. Maybe this order is wrong? > > Anyway, linux_base-f10 is currently being replaced by linux_base-c6, > a much more modern linux system (basically, cent os 6.5). Does it have the same problem? _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"