Displaying 1 result from an estimated 1 matches for "grub_file_is_not_garbage".
2010 May 18
8
/etc/grub.d/09-xen for generating grub.cfg for hypervisor boot entries.
...mpare-versions "$a" gt "$b"
  return $?
}
find_latest ()
{
  local a=""
  for i in $@ ; do
    if test_gt "$i" "$a" ; then
      a="$i"
    fi
  done
  echo "$a"
}
list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
        if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
      done`
while [ "x$list" != "x" ] ; do
  linux=`find_latest $list`
  echo "Found linux image: $linux" >&2
  basename=`basename $linux`
  dirname=`dirname $linux`
  rel_dirname=`make_system_path_relative_to_...