Hi,
On 07/15/2009 01:02 AM, Karel Zak wrote:
Hi Hans,
On Tue, Jul 14, 2009 at 10:24:43PM +0200, Hans de Goede wrote:
This patch currently assumes this new utility (code included) will become
part of udev and will live in /lib/udev, for now it is probably a good idea
I hope not. The utility duplicate partx(8) / delpart(8) code.
--- a/modules.d/90mdraid/65-md-incremental-imsm.rules
+++ b/modules.d/90mdraid/65-md-incremental-imsm.rules
@@ -6,5 +6,6 @@ SUBSYSTEM=="block", ACTION=="add", \
ENV{ID_FS_TYPE}=="linux_raid_member|isw_raid_member", \
TEST!="/tmp/.mdraid_start-%k", \
IMPORT{program}="/sbin/mdadm --examine --export $tempnode", \
+ RUN+="/lib/udev/rm_partitions $env{DEVNAME}", \
+ RUN+=/sbin/partx -d $env{DEVNAME}", \
Ah, good one I only knew about kpartx not partx, yes partx is the way to
go (assumed it works I've not tested this yet), no need to invent a
new utility.
Regards,
Hans
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html