# Remove the interface file if no disks are present
if [ -f /run/initramfs/open-iscsi.interface ] ; then
found=0
for disk in /dev/disk/by-path/*-iscsi-*; do
if ! "$(readlink -f "$disk")" ; then continue
fi found=1 break;
done
if [ $found = 0 ] ; then
rm /run/initramfs/open-iscsi.interface
fi
fi
I.e. if no disks found, open-iscsci.interface file might be removed. Are iscsi disks still called /dev/disk/by-path/*-iscsi-* ? And are seen in the initramfs?
Also, sometime ago we added this with rcj:
# Remove the interface file if no disks are present open-iscsi. interface ] ; then by-path/ *-iscsi- *; do
continue
found= 1
break; open-iscsi. interface
if [ -f /run/initramfs/
found=0
for disk in /dev/disk/
if ! "$(readlink -f "$disk")" ; then
fi
done
if [ $found = 0 ] ; then
rm /run/initramfs/
fi
fi
I.e. if no disks found, open-iscsci. interface file might be removed. Are iscsi disks still called /dev/disk/ by-path/ *-iscsi- * ? And are seen in the initramfs?