You are not logged in.

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

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

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?


Laptop: ThinkPad W500, C2D P9500, 8GB, Radeon RV635 (HD3650), Arch | Server/fw: Zotac AQ01, A4-5000 Kabini, 4GB, Arch/pfSense VM

Offline

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

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: How to install headers before kernel?

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


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

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: 5

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: 5,661

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?


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

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

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

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.


Laptop: ThinkPad W500, C2D P9500, 8GB, Radeon RV635 (HD3650), Arch | Server/fw: Zotac AQ01, A4-5000 Kabini, 4GB, Arch/pfSense VM

Offline

Board footer

Powered by FluxBB