From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JtZMt-0007Ev-Qz for garchives@archives.gentoo.org; Wed, 07 May 2008 02:26:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0D44E062D; Wed, 7 May 2008 02:26:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8DF67E062D for ; Wed, 7 May 2008 02:26:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 28414675E6 for ; Wed, 7 May 2008 02:26:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.006 X-Spam-Level: X-Spam-Status: No, score=-3.006 required=5.5 tests=[AWL=0.593, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VWfy4WmkyHoa for ; Wed, 7 May 2008 02:26:42 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id D5B8664CBD for ; Wed, 7 May 2008 02:26:38 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JtZMV-0007e0-0w for gentoo-user@gentoo.org; Wed, 07 May 2008 02:26:31 +0000 Received: from dslb-084-061-146-026.pools.arcor-ip.net ([84.61.146.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 May 2008 02:26:31 +0000 Received: from skoehler by dslb-084-061-146-026.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 May 2008 02:26:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: =?ISO-8859-1?Q?Sven_K=F6hler?= Subject: [gentoo-user] Re: grub weirdness Date: Wed, 07 May 2008 04:26:11 +0200 Message-ID: References: <200805070036.32019.peter.ruskin@dsl.pipex.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3EB0182EE04C3924ECBEA303" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-061-146-026.pools.arcor-ip.net User-Agent: Thunderbird 2.0.0.12 (X11/20080425) In-Reply-To: <200805070036.32019.peter.ruskin@dsl.pipex.com> X-Enigmail-Version: 0.95.6 Sender: news X-Archives-Salt: 19f45df3-3ee9-4915-80e9-c537dfe20d0f X-Archives-Hash: 263aba2f8b4d45dbe0f5d7315bd21661 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3EB0182EE04C3924ECBEA303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable > When you emerged grub-0.97-r5, this was displayed on your console: > WARN: postinst > *** IMPORTANT NOTE: you must run grub and install > the new version's stage1 to your MBR. Until you do, > stage1 and stage2 will still be the old version, but > later stages will be the new version, which could > cause problems such as an unbootable system. Yes, the ebuild writes that to the screen. But silently, in the background (because every output is piped to=20 /dev/null - how evil!), the ebuild calls grub with some commands inside=20 your grub.conf. If there's a setup-command in your grub.conf, it is indeed executed. So=20 if that command is outdated (something you won't notice, since that=20 command is not used by grub in any situation i know), the ebuild will=20 execute that setup-command and write to some device's boot sector. How=20 evil, again! Regards, Sven P.S.: here's the code from grub-0.97-r5.ebuild: if [[ -e ${dir}/grub.conf ]] ; then egrep \ -v=20 '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|t= itle)'=20 \ "${dir}"/grub.conf | \ /sbin/grub --batch \ --device-map=3D"${dir}"/device.map \ > /dev/null fi --------------enig3EB0182EE04C3924ECBEA303 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkghE0MACgkQ7Ww7FjRBE4DoHgCfc+91NNEePCkqHHIYj1CI99Sk FCYAnRlLMRjxA1dVo7o5gRz9a6+ndj3g =bAgo -----END PGP SIGNATURE----- --------------enig3EB0182EE04C3924ECBEA303-- -- gentoo-user@lists.gentoo.org mailing list