| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
The file /etc/initiatorname.iscsi is not installed by the
iscsi-initiator-utils rpm on Fedora Core 5.
It should be unique for each machine, but iscsi-name can be used to generate
suitable contents. Inadequate documentation is provided for the file.
The best solution is to autogenerate the file on install, then it doesn't
matter that it is not well documented...
I suggest the following is added to the %post script; it will not alter the
file if present but will create it if not present:
[ -f /etc/initiatorname.iscsi ] || echo "InitiatorName=`iscsi-iname`"
>/etc/initiatorname.iscsi
Patch:
--- old/iscsi-initiator-utils.spec 2006-02-11 03:39:24.000000000 +0000
+++ new/iscsi-initiator-utils.spec 2006-03-13 14:39:16.000000000 +0000
@@ -48,6 +48,7 @@
rm -rf $RPM_BUILD_ROOT
%post
+[ -f /etc/initiatorname.iscsi ] || echo "InitiatorName=`iscsi-iname`"
>/etc/initiatorname.iscsi
/sbin/chkconfig --add iscsi
%preun
@@ -66,6 +67,9 @@
%{_mandir}/*/*
%changelog
+* Mon Mar 13 2006 Andy Henson <andy@xxxxxxxxxxx>
+- Autogenerate /etc/initiatorname.iscsi if not already present
+
* Fri Feb 10 2006 Jesse Keating <jkeating@xxxxxxxxxx> - 5.0.5.476-0.1
- bump again for double-long bug on ppc(64)
--
View this message in context: http://www.nabble.com/-etc-initiatorname.iscsi-automatic-setup-t1273096.html#a3379674
Sent from the linux-iscsi-users forum at Nabble.com.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-iscsi-users mailing list
linux-iscsi-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/linux-iscsi-users
[IP Storage] [IETF] [Linux SCSI] [iSCSI Book] [Linux Resources] [Yosemite News] [Photo] [Home] [IETF Announcements] [IETF Discussion] [SCSI Hardware]