prometheanfire 15/08/06 03:09:28 Modified: iscsidev.sh Log: fix the glaring bug (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA)
Revision Changes Path 1.2 sys-block/open-iscsi/files/iscsidev.sh file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/open-iscsi/files/iscsidev.sh?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/open-iscsi/files/iscsidev.sh?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/open-iscsi/files/iscsidev.sh?r1=1.1&r2=1.2 Index: iscsidev.sh =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-block/open-iscsi/files/iscsidev.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- iscsidev.sh 5 Aug 2015 02:14:33 -0000 1.1 +++ iscsidev.sh 6 Aug 2015 03:09:28 -0000 1.2 @@ -39,7 +39,8 @@ # do the removal if [[ $ACTION = 'remove' ]]; then - find -L /dev/disk/by-path/ -type l -lname ${DEVNAME} -exec rm "{}" + 2>/dev/null + # nohup needed so this isn't constantly run... + nohup find -L /dev/disk/by-path/ -type l -lname ${DEVNAME} -exec rm "{}" + 2>/dev/null & exit 0 fi @@ -74,4 +75,4 @@ # actually create the link mkdir -p /dev/disk/by-path/ -ln -s "${DEVNAME}" "/dev/disk/by-path/ip-${TARGET_IP}:${TARGET_PORT}-iscsi-${TARGET_NAME}-lun-1" \ No newline at end of file +ln -s "${DEVNAME}" "/dev/disk/by-path/ip-${TARGET_IP}:${TARGET_PORT}-iscsi-${TARGET_NAME}-lun-1"
