On Wed, Oct 28, 2009 at 11:33:51PM +0100, Felix Zielcke wrote:
> +if which sfdisk /dev/null ; then
> +  GRUB_DEVICE_DISK=`echo ${GRUB_DEVICE} | sed -e "s/[0-9]*$//"`
> +  sfdisk -R ${GRUB_DEVICE_DISK} 2>/dev/null
> +fi
s/[0-9]*$// doesn't catch all partition path layouts.  More heuristic
is needed for that (we have this in util/hostdisk.c), but duplicating it
doesn't sound like a good idea.

Can this be avoided altogether?  E.g. by telling Linux the partition path
instead, or by using another interface.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to