summaryrefslogtreecommitdiff
path: root/open_issues/grub_legacy
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-06-14 23:52:11 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-06-14 23:52:11 +0200
commit58d8fcaf4184569bdda4c3c312195dfacb880d88 (patch)
tree4fd5a6eacf880e966d215f0214b8f8e07e0e45e9 /open_issues/grub_legacy
parentf0f82000b192bc85100dc9358dddca282f394454 (diff)
parent109ced1ce651d57ee802f23ca7d9985286823134 (diff)
Merge branch 'master' of flubber:~hurd-web/hurd-web
Diffstat (limited to 'open_issues/grub_legacy')
-rw-r--r--open_issues/grub_legacy/grub-install.patch23
1 files changed, 23 insertions, 0 deletions
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