[Ovirt-devel] [PATCH node-image] Adds livecd-iso-to-{disk, pxeboot} to the root ISO directory.
Darryl L. Pierce
dpierce at redhat.com
Mon Jun 15 19:16:26 UTC 2009
When the ISO is build, the scripts are copied off of the build host and
placed into the ISO. Then a user can mount the ISO and use the scripts
to create a bootable CD or USB drive.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
ovirt-node-image.ks | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ovirt-node-image.ks b/ovirt-node-image.ks
index e1ae65c..4d1fcfc 100644
--- a/ovirt-node-image.ks
+++ b/ovirt-node-image.ks
@@ -106,5 +106,12 @@ rm -Rf $manifests
%post --nochroot
# Move manifest tar to build directory
mv $INSTALL_ROOT/ovirt-node-image-manifests*.tar .
+
+# only works on x86, x86_64
+if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then
+ if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi
+ cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS
+ cp /usr/bin/livecd-iso-to-pxeboot $LIVE_ROOT/LiveOS
+fi
%end
--
1.6.0.6
More information about the ovirt-devel
mailing list