Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2014 00:59:47 +0300
From:      Rostislav Krasny <rosti.bsd@gmail.com>
To:        Kurt Jaeger <lists@opsec.eu>
Cc:        ports@freebsd.org
Subject:   Re: linux_base-f10-10_7 installation failure on FreeBSD 10.1 BETA2
Message-ID:  <CANt7McHWuj69Fhxv=GVm%2BQ%2BdfOUk2cbxqXQSOzCTHKmK8E9sKw@mail.gmail.com>
In-Reply-To: <20140925200716.GH58554@home.opsec.eu>
References:  <CANt7McEQRRtYyq3xztsMuscpB3VY3nCaCy5tkDX8jNQg1w7ADA@mail.gmail.com> <20140925190328.GE58554@home.opsec.eu> <CANt7McEtsxR=MWf560Y5=nw3Gr8hSkUKmoPRKxSicfxgfy=fjA@mail.gmail.com> <20140925191111.GF58554@home.opsec.eu> <CANt7McGr__DsH7GNCCOU8Dh8rv=urWQjqEcZcjHYuWg4QMyV_A@mail.gmail.com> <20140925193036.GG58554@home.opsec.eu> <CANt7McEmyuVKY03c2RmnXMTwgBuOX6p_mwsMb=6Bz6%2BBmsgYVA@mail.gmail.com> <20140925200716.GH58554@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 25, 2014 at 11:07 PM, Kurt Jaeger <lists@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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANt7McHWuj69Fhxv=GVm%2BQ%2BdfOUk2cbxqXQSOzCTHKmK8E9sKw>