From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OFPAG-0007TO-Bj for mharc-grub-devel@gnu.org; Fri, 21 May 2010 06:09:12 -0400 Received: from [140.186.70.92] (port=40091 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFPAB-0007Rw-Gg for grub-devel@gnu.org; Fri, 21 May 2010 06:09:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFPA9-0002OI-RK for grub-devel@gnu.org; Fri, 21 May 2010 06:09:07 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:64681) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFPA9-0002OA-N4 for grub-devel@gnu.org; Fri, 21 May 2010 06:09:05 -0400 Received: by wyb32 with SMTP id 32so317674wyb.0 for ; Fri, 21 May 2010 03:09: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:content-type :content-transfer-encoding; bh=WqtuySaIKwGntNVQu4/1sL/j92Yt4zud+/RThG0XQnE=; b=oAds8FiAlnMf32cD7EK0WX1qsc7dOpsl8YdgwtBZU2pqHuZYJ3jX31cposVboQlPpC mkmFDTgG+NiaHMTgbERj1wRL2VL0xCOtWYsEpm7cfCSNyodMPGMpsgPjYoSfpnCUiTHC ozQqv4nMhkbgkolDRZEPhagWOsKIPMn6Db53o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=L25uCsUHj8cl25l/aeZMc4J9LaKLTlEt/q7xbLNloi3NNiu+ZmE9/ROJQP9I49BB+z 9HKnEJeBsd10enPFVUL3L2xzbtMYZplKgTBTAxdTmA1wYDTH3g6Ft3yHMCSzcamGoOYM UA/8Fgi9XH8ki1D5GdSoU3XUmF6z2wbQSzzlE= Received: by 10.227.152.212 with SMTP id h20mr1107700wbw.176.1274436544828; Fri, 21 May 2010 03:09:04 -0700 (PDT) Received: from [192.168.1.50] (c2433-1-88-160-112-182.fbx.proxad.net [88.160.112.182]) by mx.google.com with ESMTPS id f8sm6260139wbe.11.2010.05.21.03.09.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 21 May 2010 03:09:04 -0700 (PDT) Message-ID: <4BF65BB0.6010303@gmail.com> Date: Fri, 21 May 2010 12:08:48 +0200 From: =?ISO-8859-1?Q?Gr=E9goire_Sutre?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100411 Icedove/3.0.4 MIME-Version: 1.0 To: The development of GNU GRUB Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Option handling in grub-mkconfig 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: Fri, 21 May 2010 10:09:10 -0000 Hi, The processing of option `-o' in grub-mkconfig only works when it is the first option. The code is: # Check the arguments. for option in "$@"; do case "$option" in [...] -o) shift grub_cfg=$1 ;; --output=*) grub_cfg=`echo "$option" | sed 's/--output=//'` ;; For instance: grub-mkconfig -o /tmp/tata -o /tmp/titi rm: invalid option -- 'o' Try `rm --help' for more information. grub-mkconfig --output=/tmp/tata -o /tmp/titi rm: invalid option -- 'o' Try `rm --help' for more information. AFAICS, other scripts (grub-install, grub-mkrescue) only support the long option (--output=FILE). The simpler solution would be to get rid of `-o' in grub-mkconfig, but this would break some user/distribution scripts (e.g. Debian's update-grub). What do you think? Grégoire