diff options
author | Thomas Schwinge <Thomas Schwinge schwinge@nic-nac-project.de> | 2009-05-23 15:42:08 +0200 |
---|---|---|
committer | Thomas Schwinge <Thomas Schwinge schwinge@nic-nac-project.de> | 2009-05-23 15:42:08 +0200 |
commit | 57819e92d59e580ac549dcbe1112bc1b6f705b65 (patch) | |
tree | b55980b374ec7b0634fc80e88b3c1083a0129af1 | |
parent | 57faf3e005fe5043cf2b73eb5adbf02957bff326 (diff) |
Add my notes and patch from 2005-08-23.
-rw-r--r-- | open_issues/grub_legacy.mdwn | 37 | ||||
-rw-r--r-- | open_issues/grub_legacy/grub-install.patch | 23 |
2 files changed, 60 insertions, 0 deletions
diff --git a/open_issues/grub_legacy.mdwn b/open_issues/grub_legacy.mdwn new file mode 100644 index 00000000..a8da1fae --- /dev/null +++ b/open_issues/grub_legacy.mdwn @@ -0,0 +1,37 @@ +[[!meta copyright="Copyright © 2009 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled +[[GNU Free Documentation License|/fdl]]."]]"""]] + +[[!meta title="GRUB (legacy)"]] + +[[!tag open_issue_porting]] + +Even though it is customarily used *for* booting GNU/Hurd systems, [[GRUB]], +specifically GRUB legacy (which is still in wide-spread use, despite that +rather depricative nickname), has never been ported to be installable when +installed *from* GNU/Hurd systems: + + # grub-install \(hd0\) + df: Warning: cannot read table of mounted filesystems + df: Warning: cannot read table of mounted filesystems + Could not find device for /boot: Not found or not a block device. + +There is a patch, [[grub-install.patch]], to fix that. + + +`grub-install`, however, still fails while invoking `grub`: + + # grub-install \(hd0\) + The file /boot/grub/stage1 not read correctly. + + # grub + [...] + grub> dump (hd0,0)/boot/grub/stage1 /tmp/grub_stage1 + + Error 18: Selected cylinder exceeds maximum supported by BIOS diff --git a/open_issues/grub_legacy/grub-install.patch b/open_issues/grub_legacy/grub-install.patch new file mode 100644 index 00000000..3f6341b4 --- /dev/null +++ b/open_issues/grub_legacy/grub-install.patch @@ -0,0 +1,23 @@ +2005-08-23 Thomas Schwinge <tschwinge@gnu.org> + + * grub-install (find_device): Rough port for GNU/Hurd. + + +--- grub-install.orig 2005-08-23 16:56:02.000000000 +0200 ++++ grub-install 2005-08-23 17:01:55.000000000 +0200 +@@ -263,7 +263,14 @@ + find_device () { + # For now, this uses the program `df' to get the device name, but is + # this really portable? +- tmp_fname=`df $1/ | sed -n 's%.*\(/dev/[^ ]*\).*%\1%p'` ++ # No. (Not even on GNU/Linux.) - Thomas Schwinge ++ ++ case $host_os in ++ gnu*) # TODO: What about using multiple devices? ++ tmp_fname=`fsysopts $1/ | sed -n 's%.*device:\([^ ]*\).*%/dev/\1%p'`;; ++ *) ++ tmp_fname=`df $1/ | sed -n 's%.*\(/dev/[^ ]*\).*%\1%p'`;; ++ esac + + if test -z "$tmp_fname"; then + echo "Could not find device for $1" 2>&1 |