bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grub-install: -e: command not found


From: Andries . Brouwer
Subject: grub-install: -e: command not found
Date: Thu, 17 May 2001 15:45:24 +0200 (MET DST)

After

  tar xvfz grub-0.5.96.1.tar.gz
  cd grub-0.5.96.1
  ./configure
  make
  make install

the command

  grub-install --root-directory=/boot /dev/hda

gives error messages

  grub-install: -e: command not found

And indeed, grub-install contains the code

    # Break the device name into the disk part and the partition part.
    case "$host_os" in
    linux*)
        tmp_disk=`echo "$1" | sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%'
                                  -e 's%/part[0-9]*$%/disc%'`
        tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%'
                                  -e 's%.*/\(disc\|part\([0-9]*\)\)$%\2%'`
        ;;

that tries to invoke the command -e.

Probably my shell is too old or too new, but in any case
it would be better to end the sed lines with \ and avoid
this problem.

Andries



reply via email to

[Prev in Thread] Current Thread [Next in Thread]