[Top][All Lists]

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

Re: pvgrub2 legacy_configfile issues: /sbin/init exec error -8

From: Vladimir 'phcoder' Serbinenko
Subject: Re: pvgrub2 legacy_configfile issues: /sbin/init exec error -8
Date: Sat, 11 Feb 2017 23:36:02 +0000

Actually patch is wrong, I'll correct and send improved version

On Sat, 11 Feb 2017, 22:07 Vladimir 'phcoder' Serbinenko <address@hidden> wrote:

On Sat, 11 Feb 2017, 19:45 Andrei Borzenkov <address@hidden> wrote:
11.02.2017 20:19, Andy Smith пишет:
> Hello,
> On Sat, Feb 11, 2017 at 03:26:43PM +0000, Andy Smith wrote:
>> Here is what the config looks like if I interrupt the boot and go to
>> edit it:
>> set root='(hd0,1)'; set legacy_hdbias='0'
>> legacy_kernel   '/boot/vmlinuz-3.16.0-4-amd64' '/boot/vmlinuz-3.16.0-4-amd64' 'root=UUID=38420e46-6123-477d-ba23-baeba8ac0d59' 'ro'
>> legacy_initrd '/boot/initrd.img-3.16.0-4-amd64' '/boot/initrd.img-3.16.0-4-amd64'
> Over on the xen-users list, Sarah Newman pointed out that the
> legacy_initrd line should not have a repeated argument:
> If I edit away the repetition, so that the config line is:
> legacy_initrd '/boot/initrd.img-3.16.0-4-amd64'
> then this boots fine.

This was explicitly added in commit
9fb175ed9a48102543867f8006842628cc41217c. I do not understand the
purpose of this (is there any requirement that multiboot kernel/module
gets its name as the first parameter?)

@Vladimir? Either we need to revert this, or add similar handling to
legacy_initrd, but I miss why we need it in the first place.
For multiboot module old grub was passing module file name on module command line, so legacy_configfile should replicate this behaviour. But in Linux case it shouldn't have ended up loading twice. We need additional code in legacy_initrd. Please try the attached patch

> Should I report this in grub's bugzilla?

Sure. Although I still wonder why it fails. I.e. kernel should simply
extract the same initrd content twice, why it causes such effect?

Grub-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]