You are not logged in.

#1 2012-11-01 14:10:09

slot
Member
Registered: 2008-09-08
Posts: 67

kernel upgrade: ERROR: Hook 'net' cannot be found [SOLVED]

during upgrade today of both linux and linux-lts these lines appeared:

ERROR: Hook 'net' cannot be found
WARNING: errors were encountered during the build. The image may not be complete

Could not find anything except other kernel errors during the last days.

Cannot just downgrade due to nvidia dependency of the latest kernel version

The kernel from testing have the same errors and fail to upgrade.

What's the issue?

Last edited by slot (2012-11-01 14:45:32)

Offline

#2 2012-11-01 14:28:30

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: kernel upgrade: ERROR: Hook 'net' cannot be found [SOLVED]

So what is the 'net' hook?  I have never used, or heard of it before.  Cna you explain a bit more?

Edit: Okay, so I was unsure because it does not show up in my list of mkinitcpio hooks when I use -L.  But on the wiki page, it would seem that there is info regarding a 'net' hook.  It says it "Provides handling for an NFS based root filesystem."  So I guess the question becomes: is there a new way for the handling of an NFS root?

Last edited by WonderWoofy (2012-11-01 14:36:33)

Offline

#3 2012-11-01 14:29:09

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: kernel upgrade: ERROR: Hook 'net' cannot be found [SOLVED]

Silly question, but when did the 'net' hook come into existence?


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2012-11-01 14:34:51

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: kernel upgrade: ERROR: Hook 'net' cannot be found [SOLVED]

the "net" hook is part of mkinitcpio-nfs-utils and you should only need it if your root is on NFS. This has nothing to do with the kernel, the error probably appears because you removed mkinitcpio-nfs-utils. The question is why you even added the net hook in the first place. Remove it from the HOOKS array in /etc/mkinitcpio.conf and you should be fine.

Offline

#5 2012-11-01 14:45:06

slot
Member
Registered: 2008-09-08
Posts: 67

Re: kernel upgrade: ERROR: Hook 'net' cannot be found [SOLVED]

65kid wrote:

the "net" hook is part of mkinitcpio-nfs-utils and you should only need it if your root is on NFS. This has nothing to do with the kernel, the error probably appears because you removed mkinitcpio-nfs-utils. The question is why you even added the net hook in the first place. Remove it from the HOOKS array in /etc/mkinitcpio.conf and you should be fine.

I certainly did not add something there - but you're right installed mkinitcpio-nfs-utils and warning and error is gone, thanks

Offline

#6 2012-11-01 14:47:36

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: kernel upgrade: ERROR: Hook 'net' cannot be found [SOLVED]

Is your root filesystem on NFS? If not, you can safely remove both the hook and the mkinitcpio-nfs-utils package.  I would imagine there are actually very few users who have their root filesystem on an NFS anyway.  NFS is pretty great, but I'd rather run the system itself locally and then share the data.

Offline

Board footer

Powered by FluxBB