From: Harald Hoyer Date: Thu, 5 Nov 2009 12:32:47 +0000 (+0100) Subject: udev-rules: do not run blkid on temporary device mapper devices X-Git-Tag: 003~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7b97367b2cf4a180a2c1e5ccddc05b09cd23ff6;p=thirdparty%2Fdracut.git udev-rules: do not run blkid on temporary device mapper devices --- diff --git a/modules.d/95udev-rules/59-persistent-storage.rules b/modules.d/95udev-rules/59-persistent-storage.rules index 41e24aec6..299a71dec 100644 --- a/modules.d/95udev-rules/59-persistent-storage.rules +++ b/modules.d/95udev-rules/59-persistent-storage.rules @@ -1,7 +1,18 @@ SUBSYSTEM!="block", GOTO="ps_end" ACTION!="add|change", GOTO="ps_end" -ACTION=="change", KERNEL=="dm-[0-9]*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode" + KERNEL=="cciss[0-9]*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode" KERNEL=="nbd[0-9]*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode" KERNEL=="md[0-9]*|md_d[0-9]*|md/*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode" -LABEL="ps_end" \ No newline at end of file + + +KERNEL!="dm-[0-9]*", GOTO="ps_end" +ACTION=="add", GOTO="ps_end" +IMPORT{program}="/sbin/dmsetup info -c --nameprefixes --unquoted --rows --noheadings -o name,uuid,suspended,readonly,major,minor,open,tables_loaded,names_using_dev -j%M -m%m" +ENV{DM_NAME}!="?*", GOTO="ps_end" +ENV{DM_UUID}=="CRYPT-TEMP-?*", GOTO="ps_end" +ENV{DM_UUID}!="?*", ENV{DM_NAME}=="temporary-cryptsetup-?*", GOTO="ps_end" +IMPORT{program}="/sbin/blkid -o udev -p $tempnode" + + +LABEL="ps_end"