From: Hannes Reinecke Date: Tue, 27 Sep 2016 14:38:36 +0000 (+0200) Subject: 90dmraid: do not delete partitions X-Git-Tag: 047~60^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F324%2Fhead;p=thirdparty%2Fdracut.git 90dmraid: do not delete partitions 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 --- diff --git a/modules.d/90dmraid/61-dmraid-imsm.rules b/modules.d/90dmraid/61-dmraid-imsm.rules index 4d4d9391d..72267d3c3 100644 --- a/modules.d/90dmraid/61-dmraid-imsm.rules +++ b/modules.d/90dmraid/61-dmraid-imsm.rules @@ -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"