return 1
fi
- # Fallback, for the old vol_id
- if [[ -x /lib/udev/vol_id ]]; then
- if evalstr=$(/lib/udev/vol_id --export $1 \
- | while read line; do
- strstr "$line" "ID_FS_TYPE=" && { echo $line; exit 0;}
- done;) ; then
- eval $evalstr
- [[ $ID_FS_TYPE ]] && return 0
- fi
- fi
-
# Fallback, if we don't have udev information
if find_binary blkid >/dev/null; then
eval $(blkid -o udev $1 \
# dmsetup ls --tree
----
+
-* A list of block device attributes including vol_id compatible mode. This can
-be obtained by running the commands:
+* A list of block device attributes. This can be obtained by running the commands:
+
----
# blkid -p
inst "$moddir/dmraid.sh" /sbin/dmraid_scan
- if [ ! -x /lib/udev/vol_id ]; then
- inst_rules 64-md-raid.rules
- fi
+ inst_rules 64-md-raid.rules
inst_libdir_file "libdmraid-events*.so*"
# inst /etc/passwd
# inst /etc/group
- if [ ! -x /lib/udev/vol_id ]; then
- inst_rules 64-md-raid.rules
- # remove incremental assembly from stock rules, so they don't shadow
- # 65-md-inc*.rules and its fine-grained controls, or cause other problems
- # when we explicitly don't want certain components to be incrementally
- # assembled
- sed -i -r -e '/RUN\+?="[[:alpha:]/]*mdadm[[:blank:]]+(--incremental|-I)[[:blank:]]+(\$env\{DEVNAME\}|\$tempnode)"/d' "${initdir}/lib/udev/rules.d/64-md-raid.rules"
- fi
+ inst_rules 64-md-raid.rules
+ # remove incremental assembly from stock rules, so they don't shadow
+ # 65-md-inc*.rules and its fine-grained controls, or cause other problems
+ # when we explicitly don't want certain components to be incrementally
+ # assembled
+ sed -i -r -e '/RUN\+?="[[:alpha:]/]*mdadm[[:blank:]]+(--incremental|-I)[[:blank:]]+(\$env\{DEVNAME\}|\$tempnode)"/d' "${initdir}/lib/udev/rules.d/64-md-raid.rules"
inst_rules "$moddir/65-md-incremental-imsm.rules"
+++ /dev/null
-SUBSYSTEM!="block", GOTO="psv_end"
-ACTION!="add|change", GOTO="psv_end"
-ACTION=="change", KERNEL=="dm-[0-9]*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}!="1", IMPORT{program}="vol_id --export $tempnode"
-KERNEL=="cciss[0-9]*", IMPORT{program}="vol_id --export $tempnode"
-KERNEL=="nbd[0-9]*", IMPORT{program}="vol_id --export $tempnode"
-KERNEL=="md[0-9]*|md_d[0-9]*|md/*", IMPORT{program}="vol_id --export $tempnode"
-LABEL="psv_end"
inst_dir /run/udev
inst_dir /run/udev/rules.d
- if [ ! -x /lib/udev/vol_id ]; then
- dracut_install blkid
- inst_rules "$moddir/59-persistent-storage.rules"
- else
- inst_rules "$moddir/59-persistent-storage-volid.rules"
- fi
+ dracut_install blkid
+ inst_rules "$moddir/59-persistent-storage.rules"
inst_rules "$moddir/61-persistent-storage.rules"
for _i in \
input_id \
scsi_id \
usb_id \
- vol_id \
pcmcia-socket-startup \
pcmcia-check-broken-cis \
; do