have_dmraid=no
# if we should init dm-multipath at boot
have_multipath=no
-# dm-multipath id which is used for rootfs
-MULTIPATH_ID=
+# dm-multipath wwid which is used for rootfs
+MULTIPATH_WWID=
usage() {
uname_r=$(uname -r)
# remove partition, if any
local disk=${devpath%p[0-9]*}
# need only dm name
- MULTIPATH_ID=${disk#/dev/mapper/}
+ MULTIPATH_WWID=${disk#/dev/mapper/}
- local info=$(multipath -l $MULTIPATH_ID)
+ local info=$(multipath -l $MULTIPATH_WWID)
if [ -z "$info" ]; then
return 1
fi
initrd_gen_devices
mount_sys
- echo "export WWID=$MULTIPATH_ID" | add_linuxrc
+ echo "export WWID=$MULTIPATH_WWID" | add_linuxrc
add_linuxrc <<-'EOF'
# parse wwid= from kernel commandline
for arg in $CMDLINE; do