Your message dated Sat, 5 May 2007 18:22:57 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#418856: update-grub uses hard default for kopt_2_6 for
fresh installs
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: grub
Version: 0.97-27
I am currently in the process of trying to make update-grub play
nicely with our configuration management system. Ideally, I
would like to be able to specify xenkopt, xenhopt, kopt, etc. in
/etc/default/grub, and *not* have to mess with
/boot/grub/menu.lst (because it's far better for the
configuration management system to manage a whole file than fight
over menu.lst with other systems.)
The system I have now works fine for the Xen options, but falls
down on kopt, because of the fact that kopt_2_6 is (somewhat
inexplicably) hard-coded in with its own options for fresh
installs -- there seems to be no way of setting this in the
defaults file.
Is it possible to either not rely on kopt_2_6, or permit it to be
set from the defaults file in the same way that kopt can be?
I include a (probably naive) patch for the former case:
diff -u update-grub.orig update-grub
--- update-grub.orig 2007-04-12 11:46:52.000000000 +0100
+++ update-grub 2007-04-12 12:11:04.000000000 +0100
@@ -711,9 +711,6 @@
# Extract the kernel options to use
kopt=$(GetMenuOpt "kopt" "$kopt")
-# Set the kernel 2.6 option only for fresh install
-test -z "$(GetMenuOpt "kopt" "")" && kopt_2_6="root=$root_device ro"
-
# Extract options for specific kernels
opts="$(ExtractMenuOpts "\(kopt_[[:alnum:]_]\+\)")"
test -z "$opts" || eval "$opts"
Thanks,
--
Mike Clarke
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
On Thu, May 03, 2007 at 09:15:04AM +0200, Robert Millan wrote:
> On Thu, Apr 12, 2007 at 12:20:54PM +0100, Michael Clarke wrote:
> > Package: grub
> > Version: 0.97-27
> >
> > I am currently in the process of trying to make update-grub play
> > nicely with our configuration management system. Ideally, I
> > would like to be able to specify xenkopt, xenhopt, kopt, etc. in
> > /etc/default/grub, and *not* have to mess with
> > /boot/grub/menu.lst (because it's far better for the
> > configuration management system to manage a whole file than fight
> > over menu.lst with other systems.)
>
> We implemented precisely that for grub2. Would you please look into our
> next upload that implements the /etc/default/grub you want?
This has been implemented in grub2 (latest upload). Please, have a look at it.
And if you're missing some parameters, file a bug against this package.
Some notes:
- kopt (now known as GRUB_CMDLINE_LINUX) is only implemented in CVS (will be
there in next upload).
- xen options need to be handled separately by Xen maintainers.
--
Robert Millan
My spam trap is [EMAIL PROTECTED] Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.
--- End Message ---