All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH,HURD] Fix root device passing
@ 2009-11-02 17:33 Samuel Thibault
  2009-11-02 18:50 ` Colin Watson
  0 siblings, 1 reply; 8+ messages in thread
From: Samuel Thibault @ 2009-11-02 17:33 UTC (permalink / raw)
  To: grub-devel

Hello,

The patch below fixes passing root device to GNU Mach.
With this applied (and some tuning in my hurd /dev/) and my other two
patches, I could successfully run grub-install and boot!

Samuel

2009-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	* util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
	giving it to GNU Mach.

Index: util/grub.d/10_hurd.in
===================================================================
--- util/grub.d/10_hurd.in	(révision 2677)
+++ util/grub.d/10_hurd.in	(copie de travail)
@@ -72,8 +72,9 @@
 menuentry "${OS}" {
 EOF
 prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
+ROOT_DEVICE=`echo ${GRUB_DEVICE} | sed -e 's:^/dev/::'`
 cat << EOF
-	multiboot ${kernel} root=device:${GRUB_DEVICE}
+	multiboot ${kernel} root=device:${ROOT_DEVICE}
 EOF
 prepare_grub_to_access_device ${GRUB_DEVICE} | sed -e "s/^/\t/"
 cat << EOF



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-11-02 19:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-02 17:33 [PATCH,HURD] Fix root device passing Samuel Thibault
2009-11-02 18:50 ` Colin Watson
2009-11-02 18:53   ` Samuel Thibault
2009-11-02 19:06     ` Felix Zielcke
2009-11-02 19:12       ` Felix Zielcke
2009-11-02 19:17       ` Samuel Thibault
2009-11-02 19:11     ` Robert Millan
2009-11-02 19:19       ` Samuel Thibault

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.