Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N52hL-0003nq-UZ for mharc-grub-devel@gnu.org; Mon, 02 Nov 2009 14:36:15 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N52hJ-0003mK-Hj for grub-devel@gnu.org; Mon, 02 Nov 2009 14:36:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N52hF-0003id-2c for grub-devel@gnu.org; Mon, 02 Nov 2009 14:36:13 -0500 Received: from [199.232.76.173] (port=41983 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N52hE-0003iQ-W9 for grub-devel@gnu.org; Mon, 02 Nov 2009 14:36:09 -0500 Received: from solo.fdn.fr ([80.67.169.19]:33243) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N52hE-0000Y6-I8 for grub-devel@gnu.org; Mon, 02 Nov 2009 14:36:08 -0500 Received: from const.ipv6 (youpi.is-a-geek.org [80.67.176.89]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTP id 5842944251 for ; Mon, 2 Nov 2009 20:36:07 +0100 (CET) Received: from samy by const.ipv6 with local (Exim 4.69) (envelope-from ) id 1N52hB-0002pa-GA for grub-devel@gnu.org; Mon, 02 Nov 2009 20:36:05 +0100 Date: Mon, 2 Nov 2009 20:36:05 +0100 From: Samuel Thibault To: grub-devel@gnu.org Message-ID: <20091102193605.GN4515@const.famille.thibault.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH,HURD] Fix GNU/Hurd menu entry generation X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2009 19:36:13 -0000 Hello, The patch below fixes menu entry generation for GNU/Hurd. Samuel 2009-20-26 Samuel Thibault * util/grub.d/30_os-prober.in: Add GNU/Hurd support Index: util/grub.d/30_os-prober.in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- util/grub.d/30_os-prober.in (r=E9vision 2657) +++ util/grub.d/30_os-prober.in (copie de travail) @@ -155,7 +155,28 @@ EOF ;; hurd|*) - echo " ${LONGNAME} is not yet supported by grub-mkconfig." >&2 + cat << EOF +menuentry "${LONGNAME} (on ${DEVICE})" { +EOF + prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/" + grub_device=3D"`${grub_probe} --device ${DEVICE} --target=3Ddrive`= " + mach_device=3D"`echo "${grub_device}" | tr -d '()' | tr , s`" + grub_fs=3D"`${grub_probe} --device ${DEVICE} --target=3Dfs`" + case "${grub_fs}" in + *fs) hurd_fs=3D"${grub_fs}" ;; + *) hurd_fs=3D"${grub_fs}fs" ;; + esac + cat << EOF + multiboot /boot/gnumach.gz root=3Ddevice:${mach_device} + module /hurd/${hurd_fs}.static ${hurd_fs} --readonly \\ + --multiboot-command-line=3D'\${kernel-command-line}' \\ + --host-priv-port=3D'\${host-port}' \\ + --device-master-port=3D'\${device-port}' \\ + --exec-server-task=3D'\${exec-task}' -T typed '\${root}' \\ + '\$(task-create)' '\$(task-resume)' + module /lib/ld.so.1 exec /hurd/exec '\$(exec-task=3Dtask-create)' +} +EOF ;; esac done