xen-drbd

diff xen-drbd-install.py @ 46:6964fb4421a5

nifix
author igor@manas.xt.vpn
date Mon Sep 29 16:09:02 2008 +0300 (2008-09-29)
parents 562d6e064e6f
children 01eb86555abb
line diff
     1.1 --- a/xen-drbd-install.py	Tue Sep 23 11:40:23 2008 +0300
     1.2 +++ b/xen-drbd-install.py	Mon Sep 29 16:09:02 2008 +0300
     1.3 @@ -224,17 +224,17 @@
     1.4  kill $(lsof +D /domU/%s | grep -v PID | awk '{print $2}' | sort -u) 2> /dev/null
     1.5  sleep 2
     1.6  kill -9 $(lsof +D /domU/%s | grep -v PID | awk '{print $2}' | sort -u) 2> /dev/null
     1.7 -    """ % (debian_release,domains[0],debian_mirror,domains[0],apt_get_install,domains[0],domains[0])
     1.8 +    """ % (debian_release,linux_domains[0],debian_mirror,linux_domains[0],apt_get_install,linux_domains[0],linux_domains[0])
     1.9  
    1.10  def make_rsync():
    1.11 -    for dom in domains[1:]:
    1.12 +    for dom in linux_domains[1:]:
    1.13          print """
    1.14  rsync -a /domU/%s/ /domU/%s/
    1.15 -        """ % (domains[0], dom)
    1.16 +        """ % (linux_domains[0], dom)
    1.17  
    1.18  
    1.19  def make_install_packages():
    1.20 -    for dom in domains:
    1.21 +    for dom in linux_domains:
    1.22          try:
    1.23              print """
    1.24  chroot /domU/%s apt-get install -y --force-yes %s