From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1TAnXw-0005OD-NP for mharc-grub-devel@gnu.org; Sun, 09 Sep 2012 15:51:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAnXu-0005Nx-9e for grub-devel@gnu.org; Sun, 09 Sep 2012 15:51:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAnXr-0002od-Ip for grub-devel@gnu.org; Sun, 09 Sep 2012 15:51:54 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:51424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAnXr-0002oQ-Br for grub-devel@gnu.org; Sun, 09 Sep 2012 15:51:51 -0400 Received: by wibhq4 with SMTP id hq4so1175562wib.12 for ; Sun, 09 Sep 2012 12:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=0Si1kvDJdqxLnbeU1T5nBuPUx5LpbWOShisvvwrmoB0=; b=HtujLLimy8+lsmhF+WzYIQgtkSBw6xAEzWZEXFQQkf2qZ6Q9PcxWVPOol2exfCQJGE IleTkJnPn9XHadGxccWa9+cGKPEXDH8VeYtxgF8Uv/7e9UIfh9EvVF+8pFGKkgIWZJgh yfMcli86wfrzctzMShiYyn7lToEuNi/jxUFL0WgrujDn9+eiHce0wYm21YzZrra3ez30 uyd+xetLmXjzpAPYikdZugtm9F25e2nz4YzV+l5xmwok+Z5o0x65AB8aGdGBi2Ne3JzK DnqA4v0h9WgKeDLQy1dJUtcK4GLEtwFZJ0I0iWduLPJw29mWqvaP52YH4OP/M97Exc+e 5ZaQ== Received: by 10.180.14.8 with SMTP id l8mr12091151wic.6.1347220310507; Sun, 09 Sep 2012 12:51:50 -0700 (PDT) Received: from debian.x201.phnet (21-233.197-178.cust.bluewin.ch. [178.197.233.21]) by mx.google.com with ESMTPS id cl8sm13080374wib.10.2012.09.09.12.51.48 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Sep 2012 12:51:49 -0700 (PDT) Message-ID: <504CF352.6000409@gmail.com> Date: Sun, 09 Sep 2012 21:51:46 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [PATCH 2/5] grub-install: add --skip-fs-probe References: <1341864150-9588-1-git-send-email-jslaby@suse.cz> <1341864150-9588-2-git-send-email-jslaby@suse.cz> In-Reply-To: <1341864150-9588-2-git-send-email-jslaby@suse.cz> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig8F0858D55D9D414EF8266C9A" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.171 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2012 19:51:55 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8F0858D55D9D414EF8266C9A Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 09.07.2012 22:02, Jiri Slaby wrote: > From: Michael Chang >=20 > 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.= >=20 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. >=20 > Otherwise with such a setup: > Device Boot Start End Blocks Id System > /dev/sda1 2048 4208639 2103296 82 Linux swap / So= laris > /dev/sda2 * 4208640 213921791 104856576 f W95 Ext'd (LBA)= > /dev/sda5 4210688 46153727 20971520 83 Linux >=20 > This fails: > $ grub2-install --force /dev/sda2 > /usr/sbin/grub2-probe: error: cannot find a GRUB drive for /dev/sda2. C= heck your device.map. >=20 > Signed-off-by: Jiri Slaby > References: https://bugzilla.novell.com/show_bug.cgi?id=3D750897 > --- > util/grub-install.in | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > 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=3D"--force" ;; > =20 > + -s | --skip-fs-probe) > + setup_skip_fs_probe=3D"--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}" =3D "i386-p= c" ] || [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" =3D "spar= c64-ieee1275" ] ; then > # Now perform the installation. > - "$grub_setup" ${allow_floppy} ${setup_verbose} ${setup_force} --di= rectory=3D"${grubdir}/${grub_modinfo_target_cpu}-$grub_modinfo_platform" = \ > + "$grub_setup" ${allow_floppy} ${setup_verbose} ${setup_force} ${se= tup_skip_fs_probe} --directory=3D"${grubdir}/${grub_modinfo_target_cpu}-$= grub_modinfo_platform" \ > --device-map=3D"${device_map}" "${install_device}" || exit 1 > elif [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" =3D "i386= -ieee1275" ] || [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" =3D= "powerpc-ieee1275" ]; then > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig8F0858D55D9D414EF8266C9A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAlBM81MACgkQNak7dOguQgnABAD+IDGsdrx9G0Y0JMyfiEK1rsm1 HsTsZVHOO7B/pyndJL8A+gLEF/krqppAAjAH8K/BrOQRzJ/2qNoTfOZiV+c9sqbP =7Bo8 -----END PGP SIGNATURE----- --------------enig8F0858D55D9D414EF8266C9A--