Skip to contentSkip to conversation

grub-mkstandalone help text fix

PATCH Seth Goldberg 1 participant 2 messages Sep 28, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I noticed the --help text was incorrect and incomplete, so here's a patch:

--S

=== modified file 'util/grub-mkstandalone.in'

grub-mkstandalone.in 2011-09-28 21:13:36 +0000 renamed from grub-mkstandalone.in 2011-07-25 06:19:30 +0000 +3 -2
@@ -47,9 +47,10 @@
   -h, --help              print this message and exit
   -v, --version           print the version information and exit
   -o, --output=FILE       save output in FILE [required]
-  -d, --directory=DIR     use images and modules under DIR [default=%s/@platform@]
+  -d, --directory=DIR     use images and modules under DIR [default=${libdir}/grub/@target_cpu@-@platform@]
   -O, --format=FORMAT     generate an image in format
-                          available formats: %s
+                          available formats: $(${bindir}/grub-mkimage --help | \
+                                               grep available\ formats | cut -f2 -d:)
   -C, --compression=(xz|none|auto)  choose the compression to use
   --modules=MODULES       pre-load specified modules MODULES
   --grub-mkimage=FILE     use FILE as grub-mkimage
#1 lore raw

On second thought, that may not always be right (i.e. if there's a
program_prefix, so "grub" would need the "transform" applied to it).

--S

Quoting Seth Goldberg, who wrote the following on Wed, 28 Sep 2011:

Quoted 33 lines

Hi,

I noticed the --help text was incorrect and incomplete, so here's a patch:

--S

=== modified file 'util/grub-mkstandalone.in'

grub-mkstandalone.in 2011-09-28 21:13:36 +0000 renamed from grub-mkstandalone.in 2011-07-25 06:19:30 +0000 +0 -1
@@ -47,9 +47,10 @@
  -h, --help              print this message and exit
  -v, --version           print the version information and exit
  -o, --output=FILE       save output in FILE [required]
-  -d, --directory=DIR     use images and modules under DIR 

[default=%s/@platform@]
+ -d, --directory=DIR use images and modules under DIR
[default=${libdir}/grub/@target_cpu@-@platform@]
-O, --format=FORMAT generate an image in format

grub-mkstandalone.in 2011-09-28 21:13:36 +0000 renamed from grub-mkstandalone.in 2011-07-25 06:19:30 +0000 +1 -1
-                          available formats: %s
+                          available formats: $(${bindir}/grub-mkimage --help 

| \

grub-mkstandalone.in 2011-09-28 21:13:36 +0000 renamed from grub-mkstandalone.in 2011-07-25 06:19:30 +0000 +1 -1
+                                               grep available\ formats | cut 
-f2 -d:)
  -C, --compression=(xz|none|auto)  choose the compression to use
  --modules=MODULES       pre-load specified modules MODULES
  --grub-mkimage=FILE     use FILE as grub-mkimage

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel