­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ # 310_create_grub2.sh # # create grub.cfg for Relax-and-Recover # # This file is part of Relax-and-Recover, licensed under the GNU General # Public License. Refer to the included COPYING for full text of license. # other boot loader distro case if [[ ! -r /boot/grub2/grub.cfg ]] ; then return fi # create grub directory structure mkdir -p $v $TMP_DIR/ppc cat >"$TMP_DIR/ppc/bootinfo.txt" < Relax-and-Recover Linux boot &device;:,\boot\grub\powerpc.elf EOF mkdir -p $v $TMP_DIR/boot/grub cat >"$TMP_DIR/boot/grub/grub.cfg" </dev/null if [ $? -ne 0 ]; then grub_name=grub fi $grub_name-mkimage -O powerpc-ieee1275 -p '()/boot/grub' -o $TMP_DIR/boot/grub/powerpc.elf linux normal iso9660 # FIXME: Those additional array elements are no ISO files # so what is that special code meant to do? ISO_FILES+=( boot=boot ppc=ppc )