[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#764596: vmdebootstrap generated sid images fail to boot on fsck error loop



Control: clone -1 -2
Control: reassign -1 vmdebootstrap
Control: retitle -1 vmdebootstrap should install kernel last
Control: retitle -2 Missing fsck.<type> should be non-fatal

On Thu, 2014-10-09 at 14:53 +0200, Martin Pitt wrote:
> Package: vmdebootstrap
> Version: 0.3-1
> 
> Hello,
> 
> I just tried to build an image of current sid for running autopkgtests
> in:
> 
>   $ sudo vmdebootstrap --verbose --serial-console --distribution=sid --user=adt/adt --size=2000000000 --mbr --image=adt-sid.raw
> 
> This worked in the past, but now they are stuck in a boot failure
> loop;
> 
>   $ kvm -m 2048 -snapshot -drive file=adt-sid.raw,if=virtio -monitor none -nographic -serial stdio
>   [...]
>   Begin: Loading essential drivers ... done.
>   Begin: Running /scripts/init-premount ... done.
>   Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
>   Begin: Running /scripts/local-premount ... done.
>   Begin: Checking root file system ... fsck from util-linux 2.25.1
>   fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/vda1
>   fsck exited with status code 8
>   done.
[...]
> This might be a regression from recent util-linux, or some
> misconfiguration, or incompatibility with extlinux, not sure.
> fsck.ext4 definitively exists (i. e. e2fsprogs is installed), and
> /dev/vda1 also exists; it's also apparently able to map the root UUID
> to /dev/vda1.
[...]

fsck.ext4 is not present in the initramfs, probably because
initramfs-tools was installed before e2fsprogs.  Unfortunately, we
cannot simply make initramfs-tools depend on the appropriate package
because it depends on which filesystem is used for root.

vmdebootstrap should install the kernel last so that all programs that
may be wanted in the initramfs will be available when the initramfs is
built.

But also, a fsck failure because fsck.<type> is missing should not be
fatal.

Ben.

-- 
Ben Hutchings
Life is what happens to you while you're busy making other plans.
                                                               - John Lennon

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: