Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jul 2017 00:49:20 +0300
From:      Boris Samorodov <bsam@passap.ru>
To:        Ben Woods <woodsb02@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: [base pkg] update !GENERIC kernel
Message-ID:  <8b022ffd-4ce2-c92e-7573-270123ff6fde@passap.ru>
In-Reply-To: <CAOc73CC540iK11Vf7iiEeRF1Q0rUX=EnEeiD-rA2tUQQcvj4Qw@mail.gmail.com>
References:  <f105b2e6-2dd2-a197-1045-e78fbfb63eb1@passap.ru> <CAOc73CC540iK11Vf7iiEeRF1Q0rUX=EnEeiD-rA2tUQQcvj4Qw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
20.07.2017 02:05, Ben Woods пишет:
> On Wed, 19 Jul 2017 at 7:37 pm, Boris Samorodov <bsam@passap.ru> wrote:
> 
>> Hi All,
>>
>> I use self-made base packages for an ARM board. The kernel I use
>> is IMX6 one. While pkg update I get this:
>> ---
>> [271/302] Upgrading FreeBSD-kernel-imx6-debug from 12.0.s20170718113533
>> to 12.0.s20170719070514...
>> [271/302] Extracting FreeBSD-kernel-imx6-debug-12.0.s20170719070514:
>> 100%
>> kldxref: //boot/kernel: No such file or directory
>> pkg: POST-INSTALL script failed
>> [272/302] Upgrading FreeBSD-kernel-imx6 from 12.0.s20170718113533 to
>> 12.0.s20170719070514...
>> [272/302] Extracting FreeBSD-kernel-imx6-12.0.s20170719070514: 100%
>>
>> kldxref: //boot/kernel: No such file or directory
>> pkg: POST-INSTALL script failed
>> ---
>>
>> All is fine except those messages.
>>
>> There is no /boot/kernel, but there is /boot/kernel.IMX6. The kernel
>> is defined at /boot/loader.conf:
>> ---
>> kernel="kernel.IMX6"
>> ---
>>
>> Seems that for now pkg can't handle non-default kernel. Should I just
>> ignore those messages? Or should I run some post-update commands/scripts
>> by hand?
> 
> 
> I had the same problem on my machine using pkg-base with a non-default
> named kernel package.
> 
> As a workaround, I created a symlink at /boot/kernel pointing to the
> correct kernel directory. This seemed to fix the problem, but required this
> manual intervention.

Yep, I've end up doing the same. Thank you.

> It would be good if this wasn't required, and the kernel package used the
> kernel parameter in loader.conf to determine where to run the post-install
> script.

-- 
WBR, bsam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8b022ffd-4ce2-c92e-7573-270123ff6fde>