From: Ian Campbell <Ian.Campbell@eu.citrix.com>
To: Yu Zhiguo <yuzg@cn.fujitsu.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] Don't attach needless options when launch pygrub
Date: Wed, 14 Jul 2010 13:33:53 +0100 [thread overview]
Message-ID: <1279110833.5872.12.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <4C3D9DD6.50809@cn.fujitsu.com>
On Wed, 2010-07-14 at 12:21 +0100, Yu Zhiguo wrote:
> Ian Campbell wrote:
> > On Wed, 2010-07-14 at 12:01 +0100, Yu Zhiguo wrote:
> >> Ian Campbell wrote:
> >>> On Wed, 2010-07-14 at 11:07 +0100, Yu Zhiguo wrote:
> >>>> Oh, yes. It seems that path of specified 'kernel' will be checked
> >>>> in configure_image(). We can delete this check if 'bootloader' is
> >>>> existent.
> >>> That's only for kernel specified on the xm command line, not from the
> >>> configuration file, isn't it?
> >>>
> >>> I just confirmed that for a guest with grub configuration entries for
> >>> 2.6.32-5-686-bigmem and 2.6.26-2-686-bigmem (in that order) then
> >>>
> >>> bootloader = "/usr/bin/pygrub"
> >>> bootloader_args = "--quiet"
> >>>
> >>> kernel = "/boot/vmlinuz-2.6.26-2-686-bigmem"
> >>> ramdisk = "/boot/initrd.img-2.6.26-2-686-bigmem"
> >>>
> >>> will boot 2.6.26-2-686-bigmem whereas without the kernel and ramdisk
> >>> lines it will boot 2.6.32-5-686-bigmem.
> >>>
> >> I guess this DomU's grub.conf must has "kernel /boot/vmlinuz-2.6.26-2-686-bigmem".
> >>
> >> In other words, path of specified 'kernel' must be existent and *same* in both Dom0 and DomU.
> >> This is a problem, it is difficult for using.
> >
> > No, in my domain 0:
> >
> > # ls /boot/vmlinuz-2.6.26-2-686-bigmem
> > ls: cannot access /boot/vmlinuz-2.6.26-2-686-bigmem: No such file or directory
> > # ls /boot/vmlinuz-2.6.32-5-686-bigmem
> > ls: cannot access /boot/vmlinuz-2.6.32-5-686-bigmem: No such file or directory
> >
>
> yes. But what about menu.lst?
It contains /boot/vmlinuz-etcetc
> I think so.
> xl now cannot use 'bootloader' format (before your patchs),
> it just use 'kernel + ramdisk' format, so it should check 'kernel'
> is existent in Dom0 or not.
>
> But xm can use 'bootloader' format, in this format, 'kernel' should not be
> check in Dom0 because it is path in DomU.
Correct.
>
>
> Yu
>
> > Ian.
> >
> >> I want to resolve this by using 'kernel' as DomU's kernel path, so it should not
> >> check it is existent or not in Dom0.
> >
> >>
> >> Yu
> >>
> >>
> >>>> What's your opinion?
> >>> This is long standing behaviour of the toolstack and although it's a
> >>> little odd it's not totally useless (it could be very useful if you
> >>> botch you grub configuration for example).
> >>>
> >>> I'll ask again, what do you think is wrong with the current behaviour
> >>> and what are the benefits to changing it?
> >>>
> >>> Ian.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
> >
>
next prev parent reply other threads:[~2010-07-14 12:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-14 6:15 [PATCH] Don't attach needless options when launch pygrub Yu Zhiguo
2010-07-14 6:47 ` Ian Campbell
2010-07-14 7:29 ` Yu Zhiguo
2010-07-14 8:10 ` Ian Campbell
2010-07-14 9:36 ` Yu Zhiguo
2010-07-14 9:46 ` Ian Campbell
2010-07-14 10:07 ` Yu Zhiguo
2010-07-14 10:21 ` Yu Zhiguo
2010-07-14 10:22 ` Ian Campbell
2010-07-14 11:01 ` Yu Zhiguo
2010-07-14 11:10 ` Ian Campbell
2010-07-14 11:21 ` Yu Zhiguo
2010-07-14 12:33 ` Ian Campbell [this message]
2010-07-15 2:37 ` [PATCH] xm: needless to check 'kernel/ramdisk' is existent or not Yu Zhiguo
2010-07-15 7:42 ` Ian Campbell
2010-07-15 7:56 ` Ian Campbell
2010-07-15 3:44 ` [PATCH] Don't attach needless options when launch pygrub Zhigang Wang
2010-07-15 5:03 ` Yu Zhiguo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1279110833.5872.12.camel@zakaz.uk.xensource.com \
--to=ian.campbell@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
--cc=yuzg@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.