From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Pd2W8-0005h5-QZ for mharc-grub-devel@gnu.org; Wed, 12 Jan 2011 10:21:44 -0500 Received: from [140.186.70.92] (port=55931 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd2W6-0005gd-Kj for grub-devel@gnu.org; Wed, 12 Jan 2011 10:21:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pd2W4-0005y8-UH for grub-devel@gnu.org; Wed, 12 Jan 2011 10:21:42 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:46754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pd2W4-0005xt-Hg for grub-devel@gnu.org; Wed, 12 Jan 2011 10:21:40 -0500 Received: by bwz16 with SMTP id 16so654080bwz.0 for ; Wed, 12 Jan 2011 07:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type; bh=fiRDOwbNEsaYncoA7W1R7rh8la3leTvXI7Znbukmknw=; b=ABpMR01Wp6gllktFUE6pEZSGYt7WpNt7kcnAiF5Zp42f+coGtLr22rPoBJfL9utQFT dkOhrAuaWP37b2ZTV3vf9CWk5usLuNidB8zEmgKv7IRbGkv8+8zbjEamHPxWuQtxZaEW aGozXN4U8f2n4q7BYBx6VCAl5rJUoiDUJ9izQ= 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=mcl2sjq/5KlDiZHlq/Md5t3iwrR/qfjkD6XP8Rhls/oWPVaBxpOFH4i62WfXwZ+fNh 5OZsvDe0rx9F30ULKzSIqTS+fBYZ2QMXpXOnpFHuAKEjsfxMlMJQqKAxp9++ZBA6TpPR kQwIvwMjGCE2v4Ppa2Rab5+g6LI7egif1wF+E= Received: by 10.204.52.75 with SMTP id h11mr856354bkg.67.1294845698565; Wed, 12 Jan 2011 07:21:38 -0800 (PST) Received: from debian.x201.phnet (gprs31.swisscom-mobile.ch [193.247.250.31]) by mx.google.com with ESMTPS id b6sm81059bkb.10.2011.01.12.07.21.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 07:21:37 -0800 (PST) Message-ID: <4D2DC6DA.9070601@gmail.com> Date: Wed, 12 Jan 2011 16:20:58 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 MIME-Version: 1.0 To: The development of GNU GRUB References: <4D2DC21C.3050102@free.fr> In-Reply-To: <4D2DC21C.3050102@free.fr> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigDF35C64DA38730FEA7628E3E" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: About grub.cfg{.new,} generation 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: Wed, 12 Jan 2011 15:21:43 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDF35C64DA38730FEA7628E3E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01/12/2011 04:00 PM, appzer0 wrote: > Hello, > > I'd like to have some info about the 'grub-mkconfig script'. I'm > packaging grub 1.98. > In few days you should be able to package 1.99. > Tell me if I'm wrong ; this script generates a > '/boot/grub/grub.cfg.new' then it renames it to '/boot/grub/grub.cfg'. Right (modulo additional check) > I see a line saying: echo /boot/grub | sed "s,x,x" ; what is it used > for? The sed command does not change anything here, I think. > You can change the "s,x,x" part adding --transform command line option to configure. It's useful to change all the pathes used. > The problem is that slackware and other distributions use a "*.new" > renaming pattern when upgrading packages, in order to not overwrite > important config files. Then the user has to deal with these .new > files, rename, overwrite or toss away. > > If 'grub-mkconfig' is really doing what I think it does, then it would > just overwrite this important file, '/boot/grub/grub.cfg.new'. > grub.cfg shouldn't be packaged at all. It's autogenerated on the target system. --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigDF35C64DA38730FEA7628E3E 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/ iF4EAREKAAYFAk0txtoACgkQNak7dOguQglj7AEAwDi7u9e/j11w4WH59jqYR5v+ m4DwESRzgv1zOyRSbCcBAJiKeEB9YW1+y1uqtSdIhHqCl++y4WZBIhixw/FE1NTV =8d+h -----END PGP SIGNATURE----- --------------enigDF35C64DA38730FEA7628E3E--