dracut/modules.d/90multipath/multipathd-needshutdown.sh

9 lines
160 B
Bash
Executable File

#!/bin/sh
for i in $(multipath -l -v1); do
if dmsetup table "$i" | sed -n '/.*queue_if_no_path.*/q1'; then
need_shutdown
break
fi
done