]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
90dmraid: do not delete partitions 324/head
authorHannes Reinecke <hare@suse.de>
Tue, 27 Sep 2016 14:38:36 +0000 (16:38 +0200)
committerDaniel Molkentin <dmolkentin@suse.com>
Fri, 15 Dec 2017 19:58:41 +0000 (20:58 +0100)
There is no point trying to delete partitions; dmraid works
happily even with them. On the contrary trying to delete partitions
can even be harmful when eg dmraid should _not_ be started.

References: bsc#998860

Signed-off-by: Hannes Reinecke <hare@suse.com>
modules.d/90dmraid/61-dmraid-imsm.rules

index 4d4d9391dc5f23e349ca6c191b981c7781049d01..72267d3c371fa71f09470160ca1f7be575a63333 100644 (file)
@@ -23,9 +23,6 @@ ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="dm_end"
 PROGRAM=="/bin/sh -c 'for i in $sys/$devpath/holders/dm-[0-9]*; do [ -e $$i ] && exit 0; done; exit 1;' ", \
     GOTO="dm_end"
 
-ENV{DEVTYPE}!="partition", \
-    RUN+="/sbin/partx -d --nr 1-1024 $env{DEVNAME}"
-
 RUN+="/sbin/initqueue --onetime --unique --settled /sbin/dmraid_scan $env{DEVNAME}"
 
 LABEL="dm_end"