Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 310259 Details for
Bug 452837
[RFE] Add support for Ubuntu to create-wui-appliance.sh
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Ubuntu support
0001-Add-support-to-create-wui-appliance-under-Ubuntu.patch (text/plain), 2.07 KB, created by
Jeff Schroeder
on 2008-06-25 12:29:32 UTC
(
hide
)
Description:
Ubuntu support
Filename:
MIME Type:
Creator:
Jeff Schroeder
Created:
2008-06-25 12:29:32 UTC
Size:
2.07 KB
patch
obsolete
>From 91ddc0b4ad127521dd5c19ddfc3ccd6b2bfc5bba Mon Sep 17 00:00:00 2001 >From: Jeff Schroeder <jeffschroeder@computer.org> >Date: Tue, 24 Jun 2008 19:23:21 -0700 >Subject: [PATCH] Add support to create wui appliance under Ubuntu > >Signed-off-by: Jeff Schroeder <jeffschroeder@computer.org> >--- > wui-appliance/create-wui-appliance.sh | 20 ++++++++++++++++---- > 1 files changed, 16 insertions(+), 4 deletions(-) > >diff --git a/wui-appliance/create-wui-appliance.sh b/wui-appliance/create-wui-appliance.sh >index 116d572..ac13805 100755 >--- a/wui-appliance/create-wui-appliance.sh >+++ b/wui-appliance/create-wui-appliance.sh >@@ -122,7 +122,7 @@ gen_fake_managed_node() { > <on_reboot>restart</on_reboot> > <on_crash>destroy</on_crash> > <devices> >- <emulator>/usr/bin/qemu-kvm</emulator> >+ <emulator>$KVM_BINARY</emulator> > <interface type='network'> > <mac address='00:16:3e:12:34:$last_mac'/> > <source network='dummybridge'/> >@@ -155,7 +155,7 @@ gen_app() { > <on_reboot>restart</on_reboot> > <on_crash>destroy</on_crash> > <devices> >- <emulator>/usr/bin/qemu-kvm</emulator> >+ <emulator>$KVM_BINARY</emulator> > <disk type='file' device='disk'> > <source file='$disk'/> > <target dev='hda'/> >@@ -179,8 +179,20 @@ if [ $( id -u ) -ne 0 ]; then > fi > > # now make sure the packages we need are installed >-rpm -q libvirt -q kvm -q virt-manager -q virt-viewer >& /dev/null >-if [ $? -ne 0 ]; then >+if [ -e /etc/redhat-release ]; then >+ PACKAGES="libvirt kvm virt-manager virt-viewer" >+ CHECK=$(rpm $(printf " -q %s " "$PACKAGES") &> /dev/null; echo $?) >+ KVM_BINARY=/usr/bin/qemu-kvm >+elif [ -e /etc/debian_version ]; then >+ # Works in Ubuntu 8.04. Still needs testing in Debian >+ PACKAGES="libvirt0 libvirt-bin kvm qemu virt-manager virt-viewer" >+ CHECK=$(dpkg -l $PACKAGES &> /dev/null; echo $?) >+ KVM_BINARY=/usr/bin/kvm >+else >+ die "Not a supported system" >+fi >+ >+if [ $CHECK -ne 0 ]; then > # one of the previous packages wasn't installed; bail out > die "Must have the libvirt, kvm, virt-manager, and virt-viewer packages installed" > fi >-- >1.5.4.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 452837
: 310259