xen-drbd

diff xen-drbd-start.py @ 45:a91c91c166c4

double xen-drbd pass
author igor@manas.xt.vpn
date Thu Sep 25 22:05:19 2008 +0300 (2008-09-25)
parents a2e536ffabf7
children 6964fb4421a5
line diff
     1.1 --- a/xen-drbd-start.py	Mon Sep 22 15:31:57 2008 +0300
     1.2 +++ b/xen-drbd-start.py	Thu Sep 25 22:05:19 2008 +0300
     1.3 @@ -28,6 +28,15 @@
     1.4      vncconsole=0
     1.5      stdvga=0
     1.6      serial='pty'
     1.7 +else:
     1.8 +    root="/dev/hda1 ro"
     1.9 +    extra=""
    1.10 +
    1.11 +try:
    1.12 +	execfile('/etc/xen/'+network)
    1.13 +except:
    1.14 +	print "Can't find or interpret module %s with topology description" %(network)
    1.15 +	sys.exit(1)
    1.16  
    1.17  try:
    1.18      memory=mem_table[domain]
    1.19 @@ -86,8 +95,6 @@
    1.20      x+=1
    1.21  
    1.22  
    1.23 -root="/dev/hda1 ro"
    1.24 -extra=""
    1.25  
    1.26  def print_config():
    1.27      if domain_types[N] == 'hvm':