/[grub]/grub2/util/powerpc/ieee1275/grub-install.in
ViewVC logotype

Diff of /grub2/util/powerpc/ieee1275/grub-install.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by hollisb, Wed Nov 23 04:25:16 2005 UTC revision 1.3 by hollisb, Wed Nov 23 05:25:38 2005 UTC
# Line 120  else Line 120  else
120      exit 1      exit 1
121  fi  fi
122    
123    # Find the partition at the right mount point.
124    install_device=`awk '$2 == '"\"$grubdir\""' { print $1 }' < /proc/mounts`
125    if test "x$install_device" = x; then
126        echo "$grubdir must be a mount point."
127        exit 1
128    fi
129    # XXX warn on firmware-unreadable filesystems?
130    
131  # Create the GRUB directory if it is not present.  # Create the GRUB directory if it is not present.
132  test -d "$bootdir" || mkdir "$bootdir" || exit 1  test -d "$bootdir" || mkdir "$bootdir" || exit 1
133  test -d "$grubdir" || mkdir "$grubdir" || exit 1  test -d "$grubdir" || mkdir "$grubdir" || exit 1
# Line 144  fi Line 152  fi
152  "$grub_mkimage" --output=${grubdir}/grub $modules || exit 1  "$grub_mkimage" --output=${grubdir}/grub $modules || exit 1
153    
154  if test $update_nvram = yes; then  if test $update_nvram = yes; then
     # Find the partition at the right mount point.  
     install_device=`awk '$2 == '"\"$grubdir\""' { print $1 }' < /proc/mounts`  
     if test "x$install_device" = x; then  
         # Uh oh... grub-mkimage installed into a plain directory somewhere.  
         echo "$grubdir is not a mount point!"  
         exit 1  
     fi  
     # XXX warn on firmware-unreadable filesystems?  
   
155      set $ofpathname dummy      set $ofpathname dummy
156      if test -f "$1"; then      if test -f "$1"; then
157          :          :

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26