Re: [base pkg] update !GENERIC kernel

2017-07-20 Thread Boris Samorodov
20.07.2017 02:05, Ben Woods пишет:
> On Wed, 19 Jul 2017 at 7:37 pm, Boris Samorodov  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
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: [base pkg] update !GENERIC kernel

2017-07-19 Thread Ben Woods
On Wed, 19 Jul 2017 at 7:37 pm, Boris Samorodov  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.

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.

Regards,
Ben
-- 

--
From: Benjamin Woods
woods...@gmail.com
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


[base pkg] update !GENERIC kernel

2017-07-19 Thread Boris Samorodov

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?

BTW, I did not find any evidence of POST-INSTALL scripts at the .txz
file. Are they hard-coded at pkg?

--
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"