From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OT9CQ-0001y3-1a for mharc-grub-devel@gnu.org; Mon, 28 Jun 2010 03:56:14 -0400 Received: from [140.186.70.92] (port=53177 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OT9CL-0001vH-5u for grub-devel@gnu.org; Mon, 28 Jun 2010 03:56:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OT9CI-0001pK-UC for grub-devel@gnu.org; Mon, 28 Jun 2010 03:56:07 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:39164) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OT9CI-0001p7-JE for grub-devel@gnu.org; Mon, 28 Jun 2010 03:56:06 -0400 Received: by wyb39 with SMTP id 39so3201264wyb.0 for ; Mon, 28 Jun 2010 00:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=PhNB5Ijy4mRUWQQ62TqPZb5QPqGSuW6BMchnytScPVM=; b=AU/KIf9QCNgZL2VejsP8/V8azDdJwV9BURDz2eEQEPJEf5wLrVcZbqj8nFT0ljACHP DHM5c8tEjtNDKhyIMLfKelVhove8/QSNBMXyje47HmwB8O6SMyU54bNgbSbTHhxu7o2l QdKXepoVdbMjXUd3XXyOa7HVQLebtUqFZYWw8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=h40vIsFVXFmuv6eP1FSoJHvby2fdO9C3fa7utoYc1Mn/RoUlvXvq6S+BKyWzJVPuqA YkYTt39IzWh/aIaolDqKjkvpQakFO9AYKIhi6uW1X1y2AljrBQq0Vf4nWWXu98QpTPkn qQ3hV4KpHX/yMkyQR8KFICg945TGHFQ3yx5d4= Received: by 10.227.129.139 with SMTP id o11mr3528953wbs.113.1277711765881; Mon, 28 Jun 2010 00:56:05 -0700 (PDT) Received: from debian.bg45.phnet (gprs55.swisscom-mobile.ch [193.247.250.55]) by mx.google.com with ESMTPS id 6sm19499509wbz.4.2010.06.28.00.56.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 00:56:04 -0700 (PDT) Message-ID: <4C285549.6000908@gmail.com> Date: Mon, 28 Jun 2010 09:54:49 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100515 Icedove/3.0.4 MIME-Version: 1.0 To: grub-devel@gnu.org References: <20100626100504.GT21862@riva.ucam.org> In-Reply-To: <20100626100504.GT21862@riva.ucam.org> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig295FEAF9E62361E0930B9495" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] grub-install --debug-image option X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Mon, 28 Jun 2010 07:56:11 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig295FEAF9E62361E0930B9495 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/26/2010 12:05 PM, Colin Watson wrote: > When debugging problems that make GRUB unable to load > /boot/grub/grub.cfg, I often find myself telling people to edit > grub-install to put 'set debug=3Dall' in an embedded configuration file= =2E > I'd like this not to involve editing the grub-install script, and to > just be a simple option. Does this patch look OK? It makes it possibl= e > to do --debug-image=3Dall (say). > > Like --debug, I've left it undocumented for the moment since it will > spew vast quantities of output that probably require a developer to > interpret them anyway. (I don't feel strongly about this; if we > document --debug-image, then we should document the existing --debug > too.) > > 2010-06-26 Colin Watson > > * util/grub-install.in: Add --debug-image=3D option. > > =20 Go ahead > =3D=3D=3D modified file 'util/grub-install.in' > --- util/grub-install.in 2010-06-13 00:36:39 +0000 > +++ util/grub-install.in 2010-06-26 10:00:33 +0000 > @@ -50,6 +50,7 @@ no_floppy=3D > force_lba=3D > recheck=3Dno > debug=3Dno > +debug_image=3D > =20 > if [ "${target_cpu}-${platform}" =3D "i386-pc" ] ; then > disk_module=3Dbiosdisk > @@ -180,6 +181,11 @@ do > # This is an undocumented feature... > --debug) > debug=3Dyes ;; > + --debug-image) > + debug_image=3D`argument $option "$@"`; shift;; > + --debug-image=3D*) > + debug_image=3D`echo "$option" | sed 's/--debug-image=3D//'` ;; > + > -f | --force) > setup_force=3D"--force" ;; > =20 > @@ -349,6 +355,13 @@ fi > prefix_drive=3D > config_opt=3D > =20 > +rm -f ${grubdir}/load.cfg > + > +if [ "x${debug_image}" !=3D x ]; then > + echo "set debug=3D'${debug_image}'" >> ${grubdir}/load.cfg > + config_opt=3D"-c ${grubdir}/load.cfg " > +fi > + > if [ "x${devabstraction_module}" =3D "x" ] ; then > if [ x"${install_device}" !=3D x ]; then > if echo "${install_device}" | grep -qx "(.*)" ; then > @@ -369,7 +382,7 @@ if [ "x${devabstraction_module}" =3D "x" ] > echo "UUID needed with ata mod, but the filesystem containin= g ${grubdir} does not support UUIDs." 1>&2 > exit 1 > fi > - echo "search.fs_uuid ${uuid} root " > ${grubdir}/load.cfg > + echo "search.fs_uuid ${uuid} root " >> ${grubdir}/load.cfg > echo 'set prefix=3D($root)'"${relative_grubdir}" >> ${grubdir}/load.c= fg > config_opt=3D"-c ${grubdir}/load.cfg " > modules=3D"$modules search_fs_uuid" > @@ -379,7 +392,7 @@ if [ "x${devabstraction_module}" =3D "x" ] > echo "You attempted a cross-disk install, but the filesystem= containing ${grubdir} does not support UUIDs." 1>&2 > exit 1 > fi > - echo "search.fs_uuid ${uuid} root " > ${grubdir}/load.cfg > + echo "search.fs_uuid ${uuid} root " >> ${grubdir}/load.cfg > echo 'set prefix=3D($root)'"${relative_grubdir}" >> ${grubdir}/load.c= fg > config_opt=3D"-c ${grubdir}/load.cfg " > modules=3D"$modules search_fs_uuid" > > Thanks, > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig295FEAF9E62361E0930B9495 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.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkwoVVAACgkQNak7dOguQglOTAD+Mk+YQ2pNFyICMLCVVDW00Ghn jk1PNScxUTcl36BLaLIA/iL7a/5ilSP5u93T26smekg2FRHlS4C/yWMnV66yZ/sT =B7pM -----END PGP SIGNATURE----- --------------enig295FEAF9E62361E0930B9495--