From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Pd2A9-0005vT-7h for mharc-grub-devel@gnu.org; Wed, 12 Jan 2011 09:59:01 -0500 Received: from [140.186.70.92] (port=51857 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd2A7-0005uR-AZ for grub-devel@gnu.org; Wed, 12 Jan 2011 09:59:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pd2A6-0000RP-83 for grub-devel@gnu.org; Wed, 12 Jan 2011 09:58:58 -0500 Received: from smtp5-g21.free.fr ([212.27.42.5]:46491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pd2A5-0000R0-OX for grub-devel@gnu.org; Wed, 12 Jan 2011 09:58:58 -0500 Received: from [192.168.0.10] (unknown [88.188.134.86]) by smtp5-g21.free.fr (Postfix) with ESMTP id C506DD480F9 for ; Wed, 12 Jan 2011 15:58:51 +0100 (CET) Message-ID: <4D2DC21C.3050102@free.fr> Date: Wed, 12 Jan 2011 16:00:44 +0100 From: appzer0 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: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: 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 14:59:00 -0000 Hello, I'd like to have some info about the 'grub-mkconfig script'. I'm packaging grub 1.98. Tell me if I'm wrong ; this script generates a '/boot/grub/grub.cfg.new' then it renames it to '/boot/grub/grub.cfg'. 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. 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'. Sorry for my english. appzer0