Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134718 - open-iscsi - add automatic login to init script
Summary: open-iscsi - add automatic login to init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-28 21:54 UTC by Anatoly Shipitsin
Modified: 2007-04-30 13:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new iscsid script (iscsid,2.87 KB, text/plain)
2006-05-28 21:54 UTC, Anatoly Shipitsin
Details
iscsi-login init.d script (iscsi-login-init.d,825 bytes, text/plain)
2006-07-10 05:31 UTC, Anatoly Shipitsin
Details
My version of /etc/init.d/iscsid (iscsid,3.51 KB, text/plain)
2007-04-30 13:15 UTC, Torsten Kurbad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Shipitsin 2006-05-28 21:54:05 UTC
This script add automatic login on iscsi target.
Comment 1 Anatoly Shipitsin 2006-05-28 21:54:54 UTC
Created attachment 87776 [details]
new iscsid script
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-29 02:50:53 UTC
NAK on your variation of it.
Please post a seperate init script that can do the logins, and only for cases where the db entry says automatic instead of manual.
Comment 3 Anatoly Shipitsin 2006-05-29 03:16:09 UTC
> Please post a seperate init script that can do the logins, and only for cases
> where the db entry says automatic instead of manual.
If i'm set node entry to automatic login on target it's not login. I'm try write about this in openiscsi group: 
http://groups.google.com/group/open-iscsi/browse_thread/thread/fcf917fd2567e637/d71928cb01f0e116?q=auto+login&rnum=1#d71928cb01f0e116

But i'm no get right answer. I'm know this is ugly hack. But it's working. :)
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-06-11 03:10:34 UTC
All I want is a init.d script that does the logins on it's own, and none of the rest of the loading stuff.
Comment 5 Anatoly Shipitsin 2006-07-10 05:30:14 UTC
(In reply to comment #4)
> All I want is a init.d script that does the logins on it's own, and none of the
> rest of the loading stuff.
> 

Huh i'm forget about this. %) Check attach. I'm rewrite old ebuild for support new  version open-iscsi 1.1-619 and separate loading daemon and login at ISCSI Target.
Comment 6 Anatoly Shipitsin 2006-07-10 05:31:03 UTC
Created attachment 91353 [details]
iscsi-login init.d script
Comment 7 Rob Terhaar 2006-09-19 17:11:22 UTC
the ebuild that Anatoly last posted works for me!
the 1.0* doesn't even compile on 2.6.17 kernels anymore-
Comment 8 Neil Katin 2007-01-25 18:44:37 UTC
The current open-iscsi iscsiadm (754) have built in support for autologin.

I don't think we need for a separate initd script any more.

    Neil
Comment 9 Anatoly Shipitsin 2007-01-25 18:51:53 UTC
(In reply to comment #8)
> The current open-iscsi iscsiadm (754) have built in support for autologin.
> 
> I don't think we need for a separate initd script any more.
If it's work we not need this. 
Comment 10 Torsten Kurbad 2007-04-30 13:12:39 UTC
(In reply to comment #8)
> The current open-iscsi iscsiadm (754) have built in support for autologin.
> 
> I don't think we need for a separate initd script any more.

But the iscsid init script never invokes iscsiadm. And I don't believe in magic anymore. ;o)
Comment 11 Torsten Kurbad 2007-04-30 13:15:21 UTC
Created attachment 117728 [details]
My version of /etc/init.d/iscsid 

This init script does automatic login in case it's set to automatic and mounts any disks by label that are found in /etc/fstab.