bug-grub
[Top][All Lists]
Advanced

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

Re: Re : Impossible to launch grub


From: Christian Jones
Subject: Re: Re : Impossible to launch grub
Date: Thu, 29 Apr 2004 07:52:14 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3

Cyril Dupuit wrote:
This application (see join file) uses a script file which calls upon GRUB.
Unfortunately, when I try to build this application with Make, script announces to me that it is impossible for him to locate GRUB, however, 0.93 version is provided by default in Mandrake 10. This version of GRUB is provided in the form of package which one installs with Package Manager. I do not think of having make error in install, because I found it in his repertory of installation (usr/sbin/grub). This script functioned with a preceding version of Mandrake.
Hi! To start off, I think this is a problem with KOS or (possibly) the newer version of Mandrake; you may want to contact them to help determine the problem. That said, I'll do what I can to help, but I need a little more information. I've stripped out some salient parts of the script from helloworld-os to figure out what's going on on your machine---if you run the attached script and reply with it's output, that will be a big help in determining what's going on.

--
Christian Jones
address@hidden
http://www.aleph0.com/~chjones
#!/bin/bash

grub_dirs_common="/usr/local/share/grub/i386-freebsd 
/usr/local/share/grub/i386-pc /usr/share/grub/i386-pc /usr/lib/grub/i386-pc 
/usr/local/grub /usr/local/src/grub-0.5.94 $HOME/share/grub/i386-pc/"
sbin_grub_path="/usr/local/sbin /usr/sbin /sbin $HOME/sbin"

PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
export PATH

GRUBDIR=""
SBIN_GRUB=""

  # Look for a correct GRUBDIR
  for d in $grub_dirs_common ; do
    if [ -d $d ] ; then
      GRUBDIR=$d
      break
    fi
  done

        if [ ! "${GRUBDIR}" ]; then
                echo "Could not find GRUBDIR... Finding Manually---this may 
take a while..." 1>&2
                find / -name i386-pc -o -name stage1 | xargs -r ls -ldF
        else
                echo "Properly found GRUBDIR in ${GRUBDIR}"
        fi

  # Look for a correct sbin/grub
  for d in $sbin_grub_path ; do
    if [ -x $d/grub ] ; then
      SBIN_GRUB=$d/grub
      break
    fi
  done

        if [ ! "${SBIN_GRUB}" ]; then
                echo "Could not find SBIN_GRUB.  Finding manually---this may 
take a while..." 1>&2
                type grub 
                find / -name grub | xargs -r ls -ldF
        else
                echo "Properly found SBIN_GRUB in ${SBIN_GRUB}"
        fi

  if [ -d "$GRUBDIR" -a -x "$SBIN_GRUB" ] ; then : ; else
    echo "Couldn't find a correct grub installation."
    exit 1
  fi



reply via email to

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