[node-patches] Change in ovirt-node[master]: edit-node: save edited iso name to reflect installed package
jboggs at redhat.com
jboggs at redhat.com
Tue Nov 6 01:37:51 UTC 2012
Joey Boggs has uploaded a new change for review.
Change subject: edit-node: save edited iso name to reflect installed package
......................................................................
edit-node: save edited iso name to reflect installed package
rhbz#823745
Signed-off-by: Joey Boggs <jboggs at redhat.com>
Change-Id: I321859dcfe6c30552eae32398774bc825646c106
---
M tools/edit-node
1 file changed, 13 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/43/9043/1
diff --git a/tools/edit-node b/tools/edit-node
index e6cce27..67c4679 100755
--- a/tools/edit-node
+++ b/tools/edit-node
@@ -1494,7 +1494,19 @@
editor._rebuild_initramfs()
editor.unmount()
editor.package(output)
- logging.info("%s.iso saved to %s" % (editor.name, output))
+ edited_iso = os.path.join(output, editor.name + ".iso")
+ if options.install_dup:
+ n = options.install_dup
+ elif options.install_plugin:
+ n = options.install_plugin
+ elif options.install:
+ n = options.install
+ else:
+ n = ""
+ finished_iso = "%s.%s.iso" % (edited_iso.strip("edited.iso"), n)
+ shutil.move(edited_iso, finished_iso)
+
+ logging.info("%s.iso saved to %s" % (editor.name, finished_iso))
else:
# in manifest mode print do necessary items
editor.unmount()
--
To view, visit http://gerrit.ovirt.org/9043
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I321859dcfe6c30552eae32398774bc825646c106
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>
More information about the node-patches
mailing list