[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] try to reread partition table in 10_linux
From: |
Robert Millan |
Subject: |
Re: [PATCH] try to reread partition table in 10_linux |
Date: |
Thu, 29 Oct 2009 00:00:03 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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."