xen-drbd

changeset 57:b8f58a090b2f

additional_debian_releases
author Igor Chubin <igor@chub.in>
date Tue Oct 14 10:06:50 2008 +0300 (2008-10-14)
parents 14e75a085db0
children ae3cd87f8837
files xen-drbd-install.py
line diff
     1.1 --- a/xen-drbd-install.py	Fri Oct 10 23:13:58 2008 +0000
     1.2 +++ b/xen-drbd-install.py	Tue Oct 14 10:06:50 2008 +0300
     1.3 @@ -220,11 +220,16 @@
     1.4      print """
     1.5  apt-get install debootstrap lsof
     1.6  debootstrap %s /domU/%s %s
     1.7 +for i in %s
     1.8 +do
     1.9 +echo deb %s $i main contrib non-free >> /domU/%s/etc/apt/sources.list
    1.10 +done
    1.11 +LANG=C chroot apt-get update
    1.12  LANG=C chroot /domU/%s apt-get install -y --force-yes %s
    1.13  kill $(lsof +D /domU/%s | grep -v PID | awk '{print $2}' | sort -u) 2> /dev/null
    1.14  sleep 2
    1.15  kill -9 $(lsof +D /domU/%s | grep -v PID | awk '{print $2}' | sort -u) 2> /dev/null
    1.16 -    """ % (debian_release,linux_domains[0],debian_mirror,linux_domains[0],apt_get_install,linux_domains[0],linux_domains[0])
    1.17 +    """ % (debian_release,linux_domains[0],debian_mirror,debian_additional_releases,debian_mirror,linux_domains[0],linux_domains[0],apt_get_install,linux_domains[0],linux_domains[0])
    1.18  
    1.19  def make_rsync():
    1.20      for dom in linux_domains[1:]: