Darryl L. Pierce
2009-Jun-15 19:16 UTC
[Ovirt-devel] [PATCH node-image] 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. 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
David Huff
2009-Jun-15 21:59 UTC
[Ovirt-devel] [PATCH node-image] Adds livecd-iso-to-{disk, pxeboot} to the root ISO directory.
Darryl L. Pierce wrote:> 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.ACK: scripts are in LivecdOS dir on iso image.... However user would have to copy scripts off of the image and then umount the image in order to create a bootabel usbkey? is this the proper usecase?? -D