All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH 2/5] grub-install: add --skip-fs-probe
Date: Sun, 09 Sep 2012 21:51:46 +0200	[thread overview]
Message-ID: <504CF352.6000409@gmail.com> (raw)
In-Reply-To: <1341864150-9588-2-git-send-email-jslaby@suse.cz>

[-- Attachment #1: Type: text/plain, Size: 2432 bytes --]

On 09.07.2012 22:02, Jiri Slaby wrote:

> From: Michael Chang <mchang@suse.com>
> 
> To be able to install grub on an extended partition, user, if they are
> convinced it is a good idea, has to use --skip-fs-probe for grub-setup.
> 

It needs to be documented in grub-install --help.

> For convenience, let us support --skip-fs-probe directly in
> grub-install and pass it to grub-setup internally.
> 
> Otherwise with such a setup:
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1            2048     4208639     2103296   82  Linux swap / Solaris
> /dev/sda2   *     4208640   213921791   104856576    f  W95 Ext'd (LBA)
> /dev/sda5         4210688    46153727    20971520   83  Linux
> 
> This fails:
> $ grub2-install --force /dev/sda2
> /usr/sbin/grub2-probe: error: cannot find a GRUB drive for /dev/sda2. Check your device.map.
> 
> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
> References: https://bugzilla.novell.com/show_bug.cgi?id=750897
> ---
>  util/grub-install.in |    5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/util/grub-install.in b/util/grub-install.in
> index e19f1cd..3a7d332 100644
> --- a/util/grub-install.in
> +++ b/util/grub-install.in
> @@ -253,6 +253,9 @@ do
>      -f | --force)
>          setup_force="--force" ;;
>  
> +    -s | --skip-fs-probe)
> +        setup_skip_fs_probe="--skip-fs-probe" ;;
> +
>      -*)
>  	gettext_printf "Unrecognized option \`%s'\n" "$option" 1>&2
>  	usage
> @@ -738,7 +741,7 @@ fi
>  # Perform the grub_modinfo_platform-dependent install
>  if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-pc" ] || [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "sparc64-ieee1275" ] ; then
>      # Now perform the installation.
> -    "$grub_setup" ${allow_floppy} ${setup_verbose} ${setup_force} --directory="${grubdir}/${grub_modinfo_target_cpu}-$grub_modinfo_platform" \
> +    "$grub_setup" ${allow_floppy} ${setup_verbose} ${setup_force} ${setup_skip_fs_probe} --directory="${grubdir}/${grub_modinfo_target_cpu}-$grub_modinfo_platform" \
>  	--device-map="${device_map}" "${install_device}" || exit 1
>  elif [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-ieee1275" ] || [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "powerpc-ieee1275" ]; then
>  



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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

  reply	other threads:[~2012-09-09 19:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 20:02 [PATCH 1/5] search for fonts in /usr/share/fonts/uni Jiri Slaby
2012-07-09 20:02 ` [PATCH 2/5] grub-install: add --skip-fs-probe Jiri Slaby
2012-09-09 19:51   ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2012-07-09 20:02 ` [PATCH 3/5] msdos-part: allow embedding in extended partition Jiri Slaby
2012-09-05 13:28   ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-09-12  7:25     ` Michael Chang
2012-09-12 16:57       ` Lennart Sorensen
2012-09-13  5:26         ` Michael Chang
2012-09-13 15:52           ` Lennart Sorensen
2012-07-09 20:02 ` [PATCH 4/5] Migrate PPC from Yaboot to Grub2 Jiri Slaby
2012-07-14  9:14   ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-07-09 20:02 ` [PATCH 5/5] add GRUB_CMDLINE_LINUX_RECOVERY for recovery mode Jiri Slaby
2012-09-05 14:08 ` [PATCH 1/5] search for fonts in /usr/share/fonts/uni Vladimir 'φ-coder/phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=504CF352.6000409@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.