From df002327f69d19d7c5d633402a0ab77c0dde5f94 Mon Sep 17 00:00:00 2001 From: okuji Date: Wed, 19 Feb 2003 23:26:46 +0000 Subject: [PATCH] 2003-02-20 Yoshinori K. Okuji * util/grub-install.in (find_device): Fix the sed script. --- ChangeLog | 4 ++++ docs/grub-install.8 | 2 +- util/grub-install.in | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0501fbdab..3e4253b49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-02-20 Yoshinori K. Okuji + + * util/grub-install.in (find_device): Fix the sed script. + 2003-02-17 Yoshinori K. Okuji * lib/device.c (check_device): If DEVICE is empty, just return diff --git a/docs/grub-install.8 b/docs/grub-install.8 index c2c24b397..364c8971d 100644 --- a/docs/grub-install.8 +++ b/docs/grub-install.8 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23. -.TH GRUB-INSTALL "8" "January 2003" "grub-install (GNU GRUB 0.93)" FSF +.TH GRUB-INSTALL "8" "February 2003" "grub-install (GNU GRUB 0.93)" FSF .SH NAME grub-install \- install GRUB on your drive .SH SYNOPSIS diff --git a/util/grub-install.in b/util/grub-install.in index e024cd376..a6a9ac1b6 100644 --- a/util/grub-install.in +++ b/util/grub-install.in @@ -1,7 +1,7 @@ #! /bin/sh # Install GRUB on your drive. -# Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc. +# Copyright (C) 1999,2000,2001,2002,2003 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -193,7 +193,7 @@ find_device () { # Resolve symlinks while test -L $tmp_fname; do - tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> %\1%p'` + tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> \(.*\)%\1%p'` if test -z "$tmp_new_fname"; then echo "Unrecognized ls output" 2>&1 exit 1