[Ovirt-devel] [PATCH node] fix mount_live again
Darryl L. Pierce
dpierce at redhat.com
Sat Jul 11 03:59:39 UTC 2009
On Sat, Jul 11, 2009 at 05:58:02AM +0200, Alan Pevec wrote:
> fixes install from ISO
> ---
> scripts/ovirt-functions | 12 +++++++-----
> 1 files changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
> index e01ee0e..b87cebb 100644
> --- a/scripts/ovirt-functions
> +++ b/scripts/ovirt-functions
> @@ -249,11 +249,13 @@ mount_live() {
> return 0
> fi
> local live_dev=/dev/live
> - if [ ! -e $live_dev ] && losetup /dev/loop0|grep -q '\.iso'; then
> - # PXE boot
> - live_dev=/dev/loop0
> - else
> - return 1
> + if [ ! -e $live_dev ]; then
> + if losetup /dev/loop0|grep -q '\.iso'; then
> + # PXE boot
> + live_dev=/dev/loop0
> + else
> + return 1
> + fi
> fi
> mkdir -p /live
> mount -r $live_dev /live || mount $live_dev /live
> --
> 1.6.0.6
ACK. Tested in a node and it worked fine.
--
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Virtual Machine Management - http://www.ovirt.org/
Is fearr Gaeilge bhriste ná Béarla cliste.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090710/64718db8/attachment.sig>
More information about the ovirt-devel
mailing list