All of lore.kernel.org
 help / color / mirror / Atom feed
* Option handling in grub-mkconfig
@ 2010-05-21 10:08 Grégoire Sutre
  2010-05-21 10:57 ` Colin Watson
  2010-05-24  4:42 ` BVK Chaitanya
  0 siblings, 2 replies; 7+ messages in thread
From: Grégoire Sutre @ 2010-05-21 10:08 UTC (permalink / raw)
  To: The development of GNU GRUB

Hi,

The processing of option `-o' in grub-mkconfig only works when
it is the first option.  The code is:

# Check the arguments.
for option in "$@"; do
     case "$option" in
[...]
     -o)
	shift
	grub_cfg=$1
	;;
     --output=*)
	grub_cfg=`echo "$option" | sed 's/--output=//'`
	;;


For instance:

grub-mkconfig -o /tmp/tata -o /tmp/titi
rm: invalid option -- 'o'
Try `rm --help' for more information.

grub-mkconfig --output=/tmp/tata -o /tmp/titi
rm: invalid option -- 'o'
Try `rm --help' for more information.


AFAICS, other scripts (grub-install, grub-mkrescue) only support the
long option (--output=FILE).

The simpler solution would be to get rid of `-o' in grub-mkconfig,
but this would break some user/distribution scripts (e.g. Debian's
update-grub).

What do you think?

Grégoire


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-05-24 12:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-21 10:08 Option handling in grub-mkconfig Grégoire Sutre
2010-05-21 10:57 ` Colin Watson
2010-05-21 12:19   ` Grégoire Sutre
2010-05-21 13:16     ` Colin Watson
2010-05-21 18:20       ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-24  4:42 ` BVK Chaitanya
2010-05-24 12:12   ` Grégoire Sutre

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.