[Ovirt-devel] [PATCH node] Creates an iscsi initiator file for the node on install.

Darryl L. Pierce dpierce at redhat.com
Fri Jul 24 20:27:38 UTC 2009


After the node finishes installing the image to local storage, the
/etc/iscsi/initiatorname.iscsi file is generated. It is then persisted.

Resolves: rhbz#513623

Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
 scripts/ovirt-config-boot |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot
index f923b0c..1837ff6 100755
--- a/scripts/ovirt-config-boot
+++ b/scripts/ovirt-config-boot
@@ -163,6 +163,11 @@ EOF
         log "boot loader install failed."
         return $rc
     fi
+
+    # install iscsi initiator name for this machine
+    echo "InitiatorName=$(iscsi-iname)" > /etc/iscsi/initiatorname.iscsi
+    ovirt_store_config /etc/iscsi/initiatorname.iscsi
+
     umount /liveos
     umount /boot
     # mark new Root ready to go, reboot() in ovirt-function switches it to active
-- 
1.6.2.5




More information about the ovirt-devel mailing list