From 23e09962fe89aa40c656d4862ad86c9b7f349fa6 Mon Sep 17 00:00:00 2001 From: "Darryl L. Pierce" Date: Mon, 15 Jun 2009 15:07:17 -0400 Subject: [PATCH] Adds livecd-iso-to-{disk,pxeboot} to the root ISO directory. 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. --- ovirt-node-image.ks | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.11.4.GIT