Bug#597084: grub-pc: /etc/kernel/postinst.d/zz-update-grub fails inside openvz chroot

Michael Prokop mika at debian.org
Mon Nov 8 17:27:24 UTC 2010


* Vladimir 'φ-coder/phcoder' Serbinenko <phcoder at gmail.com> [Mon Nov 08, 2010 at 06:23:09PM +0100]:
> On 11/08/2010 06:15 PM, Michael Prokop wrote:
> > * Vladimir 'φ-coder/phcoder' Serbinenko <phcoder at gmail.com> [Mon Nov 08, 2010 at 05:33:41PM +0100]:

> >>> It fails because of the way openvz guests look like (simfs as
> >>> rootfs):

> >> What does linux expect as root= on command line in such config? How such
> >> config can be detected and needed parameters figured out? Would it be
> >> possible to have a root ssh access to such a system (since it's virtual
> >> I guess you could copy one that contains no private data and wipe it
> >> after we're done).

> > There's no root=... in the kernel command line involved, openvz
> > guests are like chroots.

> If I understand this statement correctly you mean that GRUB isn't used
> to boot the system and grub.cfg isn't used, right? Then  update-grub
> shouldn't be run at all.

Correct.

> Perhaps you shouldn't even install GRUB packages in this case.
> (actually this information shifts the issue from my area
> [upstream] to Debian-specific). Can someone familiar with
> packaging handle it?

When building live systems this isn't really an option. If GRUB
needs to be shipped (for example to provide a rescue system) it
needs to be installed inside the chroot that's being used to build
the live system.

regards,
-mika-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20101108/0f9480ae/attachment.pgp>


More information about the Pkg-grub-devel mailing list