Darryl L. Pierce
2009-Jul-24 20:02 UTC
[Ovirt-devel] [PATCH node] Creates an iscsi initiator file for the node on install.
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..7db4fdc 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 + 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
This patch obsoletes the previous and includes feedback from acathrow.
Darryl L. Pierce
2009-Jul-24 20:27 UTC
[Ovirt-devel] [PATCH node] Creates an iscsi initiator file for the node on install.
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