You are not logged in.

#1 2011-08-31 20:35:47

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 787

[Solved] Kernel won't finish upgrading

I did a pacman -Syu today and part of the update was the linux package.  Unfortunately, it froze on

-> Parsing hook: [autodetect] 

After several hours, I killed the upgrade process and did

pacman -S linux

It froze again in exactly the same place.  I'm now somewhat nervous of rebooting my machine, since I'm not sure that the kernel is installed properly... How can I get passed this and have a properly booting and upgraded machine?

Last edited by phunni (2011-09-01 07:19:48)

Offline

#2 2011-08-31 20:46:42

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [Solved] Kernel won't finish upgrading

Perhaps you haven't changed the grub menulist to reflect the new kernel ID as described in archlinux home page news.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2011-08-31 20:52:12

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 787

Re: [Solved] Kernel won't finish upgrading

If you mean the changes from when the package became linux (http://www.archlinux.org/news/changes-t … filenames/), then I have.  Did it a while ago.

Offline

#4 2011-08-31 20:54:10

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [Solved] Kernel won't finish upgrading

Have you tried the fallback?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#5 2011-08-31 21:31:20

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 787

Re: [Solved] Kernel won't finish upgrading

I haven't tried rebooting at all - I'm too scared to be honest! Obviously, if there's no other option, I'll have to.  I'm rather hoping, though, that there's a way of successfully completing the upgrade.

I noticed that there were a number of mkinitcpio processes - presumably from all my attempts.  I tried killing them all incase that would free it up, but I got exactly the same result.

Offline

#6 2011-08-31 21:37:39

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 787

Re: [Solved] Kernel won't finish upgrading

I've also tried clearing the cache and redownloading the package - but the result is the same...

Offline

#7 2011-08-31 21:42:21

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 787

Re: [Solved] Kernel won't finish upgrading

Currently downloading an older version of the kernel to see if a downgrade will work...

Offline

#8 2011-08-31 21:43:55

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 787

Re: [Solved] Kernel won't finish upgrading

Nope - same result... :-(

Offline

#9 2011-08-31 21:50:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,697
Website

Re: [Solved] Kernel won't finish upgrading

You can also boot from live media and rebuild the kernel.  See the "install existing" article on the wiki.  How about trying a totally different kernel package like kernel26-lts?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2011-08-31 21:53:28

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: [Solved] Kernel won't finish upgrading

Maybe the hardware time is wrong?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#11 2011-08-31 22:25:56

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [Solved] Kernel won't finish upgrading

Several thoughts:

Edit: Is your mkinitcpio up to date? There used to be a bug that caused it to hang like this. If you've got an upgrade to mkinitcpio coming in with your kernel upgrade, upgrade mkinitcpio first, and then do the kernel with the new mkinitcpio.

The autodetect hook runs the code in the build function of /lib/initcpio/install/autodetect, which in turn runs the auto_modules function from /lib/initcpio/functions. Look at these and try to figure out what in there could be hanging.

Does "mkinitcpio -M" also hang? It runs the same autodetect function (but with different output).

Check what child processes (if any) the hung mkinitcpios have before you kill them. (pstree may help with this)

Don't forget that /sbin/mkinitcpio itself is actually a shell script. Change the first line of it (temporarily) from just "#!/bin/bash" to "#!/bin/bash -x" and you will get gobs of debugging info when mkinitcpio runs.

You don't have to actually reinstall the kernel package again to retry mkinitcpio - you can just do "mkinitcpio -p linux", which is what pacman runs for you on kernel upgrades.

Last edited by ataraxia (2011-08-31 22:53:00)

Offline

#12 2011-09-01 07:04:18

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 787

Re: [Solved] Kernel won't finish upgrading

Thanks for the help! It appears to be getting stuck running the following:

 /sbin/mdadm -Esv /dev/sda /dev/sda1 /dev/sdb /dev/sdb1 /dev/sdc /dev/sdc1 /dev/sdc2 /dev/sdd /dev/sdg /dev/sdg1 /dev/sdg2 '/dev/ida/*' '/dev/cciss/*' '/dev/ataraid/*' /dev/mapper/control /dev/mapper/vg-syshome /dev/mapper/vg-sysroot /dev/mapper/vg-sysswap

According to ps, there are several mdadm processes running. I have tried killing them with 'killall -9 mdadm' but they won't die...

Offline

#13 2011-09-01 07:05:25

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 787

Re: [Solved] Kernel won't finish upgrading

BTW -I'm not using RAID at all, but I am using LVM2

Offline

#14 2011-09-01 07:10:37

cbowman57
Member
Registered: 2011-08-21
Posts: 77

Re: [Solved] Kernel won't finish upgrading

Are you running RAID on your system?

If not it looks like you are running a module that is unneeded, if that is the case wouldn't rc.d stop mdadm kill it? (as root of course)

Offline

#15 2011-09-01 07:19:29

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 787

Re: [Solved] Kernel won't finish upgrading

I'm not running RAID.  I tried the process outlined here: https://bbs.archlinux.org/viewtopic.php … 84#p542584 and it has worked. Still a little bit nervous about a repeat since I still don't know the cause, but at least it's working for now...

Offline

#16 2011-09-01 07:55:34

cbowman57
Member
Registered: 2011-08-21
Posts: 77

Re: [Solved] Kernel won't finish upgrading

Glad you got it working.

Seems odd though that autodetect found mdadm initially.  I'd go though all the configuration files and see if I could find where it's getting loaded & disable it if it were me, but maybe it's run by default?  Which doesn't make sense, I run Raid and I had to edit the mkinitcpio.conf myself to include mdadm.

If you do truly solve the problem I'd like to know how you did it.

Offline

Board footer

Powered by FluxBB