Re: initramfs broken on Jessie upgrade
- To: firstname.lastname@example.org
- Subject: Re: initramfs broken on Jessie upgrade
- From: Bernhard Schmidt <email@example.com>
- Date: Mon, 4 May 2015 09:13:24 +0000 (UTC)
- Message-id: <[🔎] firstname.lastname@example.org>
- References: <email@example.com> <20150428195144.GP24234@teltox.donarmstrong.com> <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org>
Bernhard Schmidt <email@example.com> 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.