Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 137028 Details for
Bug 200355
sys-block/open-iscsi userfriendly init.d
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Unified diff...
iscsi.diff (text/plain), 1.03 KB, created by
Stefan de Konink
on 2007-11-26 08:14:29 UTC
(
hide
)
Description:
Unified diff...
Filename:
MIME Type:
Creator:
Stefan de Konink
Created:
2007-11-26 08:14:29 UTC
Size:
1.03 KB
patch
obsolete
>--- /etc/init.d/iscsid 2007-11-09 03:36:49.000000000 +0100 >+++ /mnt/node/etc/init.d/iscsid 2007-11-26 02:57:33.875052946 +0100 >@@ -23,10 +23,13 @@ > return 1 > fi > if [ ! -f $INITIATORNAME -o -z "$(egrep '^InitiatorName=' "${INITIATORNAME}")" ]; then >- eerror "$INITIATORNAME should contain a string with your initiatior name, eg:" >- eerror "InitiatorName=iqn.2005-09.tld.domainname.hostname:initiator-name" >- eerror "Initiator name file does not exist!" >- return 1 >+ mkdir -p /etc/iscsi/ifaces /etc/iscsi/nodes /etc/iscsi/send_targets >+ eerror "InitiatorName was not set, creating one:" >+ IQN=`date +%Y-%m`.local.`ip addr show dev eth0 | egrep '^ *inet ' | sed 's/ *inet \(.*\)\/.*/\1/g'` >+ UNIQUE=`echo $IQN | md5sum | sed "s/\(.*\) -/\1/g"` >+ INITNAME="iqn.$IQN:openiscsi-$UNIQUE" >+ echo "InitiatorName=$INITNAME" >> $INITIATORNAME >+ eerror "$INITNAME" > fi > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200355
: 137028