Siduction Forum

Siduction Forum => Upgrade Warnings => Topic started by: bad_aptitude on 2014/08/23, 07:29:57

Title: Dist Upgrade has created corrupted kernel
Post by: bad_aptitude on 2014/08/23, 07:29:57
I think the last dist upgrade created a corrupted kernel. I was upgrading from 3-13.5.
The new kernel flashes up a screen full  of errors when it tries to boot and never gets to the LUKS login line. I  think the dist upgrade errored out and never correctly completed. Thus the kernel was not properly built.
Booting to my old kernel still works. How can I either fix the new kernel or get rid of it?
Thanks
Bad
Title: Re: Dist Upgrade has created corrupted kernel
Post by: der_bud on 2014/08/23, 11:46:43
First, you can have a closer look on the error messages from the 'faulty' kernel with journalctl -k -b -1   (show all kernel logs from the boot before last (-b -1) )
That works if your last boot was with the newer one and then you rebooted to the current working one. Use -b -2/3/4 respectively for earlier boot attempts.

Second, to try to fix errors you could just try apt-get with '-f' and re-distupgrade and reinstall kernel apt-get update
apt-get install -f
apt-get dist-upgrade
apt-get install --reinstall linux-image-siduction-amd64 linux-headers-siduction-amd64


And last, to just get rid of the not wanted kernel and wait for better times to come just uninstall it with usual apt commands, as for exampleapt-get purge linux-image-3.16-1.towo-siduction-amd64 linux-headers-3.16-1.towo-siduction-amd64
Title: Re: Dist Upgrade has created corrupted kernel
Post by: rueX on 2014/08/23, 17:26:14
@bad_aptitude

in those older kernel-days: i saved my d-u with: apt-get install sysvinit-core and/or systemd-sysv

might I am wrong? 
Title: Re: Dist Upgrade has created corrupted kernel
Post by: musca on 2014/08/23, 19:04:46
hello rueX,

recently debian sid has switched the default init (https://qa.debian.org/popcon-graph.php?packages=systemd-sysv%2C+sysvinit-core&show_installed=on&want_percent=on&want_legend=on&from_date=2013-10-01&to_date=2014-09-01&hlght_date=2014-07-04&date_fmt=%25m&beenhere=1) from sysvinit-core to systemd-sysv and you can't have both packages installed together with each other.

But the new sysvinit package  still provides the old sysvinit binary (not in /sbin/init !), which now can serve as a recovery method: You can modify your kernel command line and add this parameter (e.g. by pressing "e" key in the grub menu):
 init=/lib/sysvinit/init 
This will allow to boot with sysvinit without uninstalling systemd-sysv.
Beware: The systemd journal will not be used in this case.

greetings
musca
Title: Re: Dist Upgrade has created corrupted kernel
Post by: bad_aptitude on 2014/08/24, 02:41:29
Thanks Der_bud.
After  fixing the DU , I finally had to uninstall the kernel. So I will wait for those better times. :-