Re: initramfs broken on Jessie upgrade
- To: debian-user@lists.debian.org
- Subject: Re: initramfs broken on Jessie upgrade
- From: Bernhard Schmidt <berni@birkenwald.de>
- Date: Mon, 4 May 2015 09:13:24 +0000 (UTC)
- Message-id: <[🔎] mi7d7k$gem$1@ger.gmane.org>
- References: <mhomrq$f44$1@ger.gmane.org> <20150428195144.GP24234@teltox.donarmstrong.com> <mhpsrl$11l$2@ger.gmane.org> <mhptd4$g21$1@ger.gmane.org> <mhqdo5$37k$1@ger.gmane.org>
Bernhard Schmidt <berni@birkenwald.de> wrote:
> This is reproducible. To fix it it is enough to boot into the Wheezy
> kernel (even with init=/bin/sh), then reboot. It apparently does
> something to the root-fs (fsck?) which allows the Jessie kernel to boot.
Ben Hutchings had the right idea in Bug#783620.
Apparently the reboot leaves the filesystem in an unclean state. The new
initramfs is written in the journal, but not on-disk yet. Grub2 doesn't
read the journal, so it finds a corrupted initramfs. A boot with the old
kernel replays the log and the initrd can be read.
It is still unclear why the reboot is unclean at all. A sync before
reboot should help.
Bernhard
Reply to: