Comment 4 for bug 1872813

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Also, sometime ago we added this with rcj:

# 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?