tags 570119 + patch
thanks

Attached is a patch for debian bug #570119 -- this makes grub-mkrescue
on powerpc take arguments in the same pattern that grub-pc and
grub-coreboot take.

        --dkg
=== modified file 'util/powerpc/ieee1275/grub-mkrescue.in'
--- util/powerpc/ieee1275/grub-mkrescue.in	2009-11-11 23:21:13 +0000
+++ util/powerpc/ieee1275/grub-mkrescue.in	2010-02-16 20:19:09 +0000
@@ -36,7 +36,7 @@
 # Print the usage.
 usage () {
     cat <<EOF
-Usage: grub-mkrescue [OPTION] output_image
+Usage: $0 [OPTION] SOURCE...
 Make GRUB rescue image.
 
   -h, --help              print this message and exit
@@ -45,8 +45,9 @@
   --pkglibdir=DIR         use images from directory DIR
                           default: ${pkglibdir}
   --grub-mkimage=FILE     use FILE as grub-mkimage
+  --output=FILE           save output in FILE [required]
 
-grub-mkimage generates a bootable rescue CD image for PowerMac and CHRP.
+$0 generates a bootable rescue image with specified source files or directories.
 
 Report bugs to <[email protected]>.
 EOF
@@ -69,22 +70,19 @@
 	input_dir=`echo "$option" | sed 's/--pkglibdir=//'` ;;
     --grub-mkimage=*)
 	grub_mkimage=`echo "$option" | sed 's/--grub-mkimage=//'` ;;
+    --output=*)
+	output=`echo "$option" | sed 's/--output=//'` ;;
     -*)
 	echo "Unrecognized option \`$option'" 1>&2
 	usage
 	exit 1
 	;;
     *)
-	if test "x$output_image" != x; then
-	    echo "Unrecognized option \`$option'" 1>&2
-	    usage
-	    exit 1
-	fi
-	output_image="${option}" ;;
+	sources="${sources} ${option}" ;;
     esac
 done
 
-if test "x$output_image" = x; then
+if test "x$output" = x; then
   usage
   exit 1
 fi
@@ -105,9 +103,10 @@
 mkdir ${boot_dir}
 core_img=${boot_dir}/grub.img
 ${grub_mkimage} -n -d ${input_dir}/ -o ${core_img} ${modules}
-genisoimage -hfs -part -no-desktop -r -J -o ${output_image} \
+
+genisoimage -hfs -part -no-desktop -r -J -o ${output} \
  -map ${map_file} -hfs-bless ${boot_dir} -chrp-boot -sysid PPC \
- ${iso_dir}
+ ${iso_dir} ${sources}
 
 rm -rf ${iso_dir}
 rm -f ${map_file}

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to