You are not logged in.

#1 2013-10-13 22:59:49

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

How to install headers before kernel?

When I update my pf kernel, after it has been compiled, it always installs the kernel first, and only after the headers.

This seems to me quite daft, because I have several HOOKS to recompile modules like fxgl or vbox that run upon installation of kernel. However, they require updated headers to be present.
The result is, that automatic compilation of those modules fail because headers are installed afterwards.

Is there some way to inverse it?

Offline

#2 2013-10-13 23:19:24

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: How to install headers before kernel?

Install them one at a time? Am I missing something?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-10-14 00:19:58

Max-P
Member
Registered: 2011-06-11
Posts: 164

Re: How to install headers before kernel?

This is not recommended, but I guess you could use the -dd option to force the installation of the headers before (-d twice to completely disable dependency checks). It should allow you to install it anyway even if the kernel is missing.

Another option would be to remove the check from the PKGBUILD before building linux-pf. Just get rid of "depends=('linux-pf')" from the package_linux-pf-headers() function so pacman doesn't complain at all.

Offline

#4 2013-10-14 01:58:11

atmouse
Member
Registered: 2013-06-21
Posts: 6

Re: How to install headers before kernel?

my solution is remake kernel after update
"mkinitcpio -p linux"

Offline

#5 2013-10-14 02:56:50

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: How to install headers before kernel?

Note that the headers for the standard kernel do not depend on the kernel's being installed. Is this different for the pf kernel?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2013-10-14 08:24:13

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: How to install headers before kernel?

@atmouse
I think your workaround is best.
However, the necessity for a workaround kind of defeats the purpose of HOOKS.

@cfr
Yes, it is different.

Offline

Board footer

Powered by FluxBB