grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] grub-mkconfig patch for MINIX


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [PATCH] grub-mkconfig patch for MINIX
Date: Wed, 08 Sep 2010 17:15:58 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6

On 08/15/2010 12:59 PM, Fam Zheng wrote:
> Hi,
>
> `os-prober` was not able to detect recent MINIX installations, so we
> patched for the new detection and sent the patch to Debian, it's found at:
> http://lists.debian.org/debian-boot/2010/08/msg00282.html
>
> MINIX is now able to be Multibooted besides chainloading, so it's
> necessary to handle the result of os-prober accordingly. The patch for
> GRUB 2 is made then, to generate a Multiboot menu entry when detected
> system type is "minix".
>
> Patch content:
>
> === modified file 'util/grub.d/30_os-prober.in <http://30_os-prober.in>'
> --- util/grub.d/30_os-prober.in <http://30_os-prober.in> 2010-07-04
> 22:45:14 +0000
> +++ util/grub.d/30_os-prober.in <http://30_os-prober.in> 2010-08-13
> 11:31:07 +0000
> @@ -197,6 +197,23 @@
>  }
>  EOF
>      ;;
> +    minix)
> +      case ${LONGNAME} in
> + Minix*)
Why do you need to check LONGNAME separately? This shouldn't be necessary.
> +  cat << EOF
> +menuentry "${LONGNAME} (on ${DEVICE}, Multiboot)" {
> +EOF
> +          save_default_entry | sed -e "s/^/\t/"
> +          prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
> +      cat << EOF
> + multiboot /boot/image_latest
is it always named like this? Is /boot never a mountpoint?
> +}
> +EOF
> +      ;;
> +        *)
> +          echo "  ${LONGNAME}(multiboot) is not yet supported" >&2
> +      esac
> +    ;;
>      *)
>        echo "  ${LONGNAME} is not yet supported by grub-mkconfig." >&2
>      ;;
>
>
> -- 
> Best Regards!
> Fam Zheng
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]