Bug#543807: customizing /etc/default/grub
Felix Zielcke
fzielcke at z-51.de
Mon Aug 31 09:52:58 UTC 2009
Am Montag, den 31.08.2009, 17:13 +0800 schrieb jidanni at jidanni.org:
> reopen 543807
> thanks.
>
> Nope.
> Every time grub-pc gets an upgrade,
> the user will get the Q&A session.
Are you sure on every upgrade?
In 1.96+20090829-1 I changed the /usr/share/grub/default/grub file,
which is the sample of /etc/default/grub.
So it's clear that it asked you on that upgrade.
But upgrading from that version to beta1 shouldn't ask you.
> There is just no substitute for an official e.g.,
> a=/root/grub.local.sh; test -f $a && . $a
> in /etc/default/grub
>
> Go ahead and do as I do,
> add that line to the bottom of /etc/default/grub and then in
> put
>
> GRUB_TERMINAL=console
> GRUB_CMDLINE_LINUX_DEFAULT="quiet panic=15"
> case $(hostname) in
> *1) GRUB_TIMEOUT=45;;
> *) GRUB_TIMEOUT=11;;
> esac
> # Local Variables:
> # compile-command: "update-grub && grub-install /dev/hda"
> # End:
>
> you will notice that each upgrade, you will be struggling to defeat the
> over helpful auto-detection etc. mechanisms, etc....
I just changed /etc/default/grub to this:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
case $(hostname) in
*1) GRUB_TIMEOUT=45;;
*) GRUB_TIMEOUT=11;;
esac
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="xyz"
GRUB_CMDLINE_LINUX="vga=0x317"
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via
VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to
Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY="true"
Then on `dpkg-reconfigure grub-pc' the ucf prompt wa of course shown.
But not when I called dpkg-reconfigure the 2nd time.
So I still think this is only a problem if we change the sample in the
package and not on every upgrade.
But I noticed 3-way merge fails, I ask the ucf maintainer if something
can be done with this.
--
Felix Zielcke
Proud Debian Maintainer
More information about the Pkg-grub-devel
mailing list