/[sysadmin-cookbook]/recepies/lxc/kvm/01-setup/01-create-kvm-root.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /recepies/lxc/kvm/01-setup/01-create-kvm-root.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 256 by dpavlin, Sat May 14 15:46:26 2011 UTC revision 257 by dpavlin, Sat May 14 19:48:20 2011 UTC
# Line 5  if [ -z "$SUDO_UID" ] ; then Line 5  if [ -z "$SUDO_UID" ] ; then
5          exit 1          exit 1
6  fi  fi
7    
8  debootstrap --include=psmisc,less,strace,bzip2,make,gcc,libc6-dev,dropbear,lxc squeeze squeeze http://192.168.1.20:3142/ftp.debian.org/debian  MIRROR=ftp.debian.org/debian
9    dpkg -l apt-cacher-ng >/dev/null && MIRROR="127.0.0.1:3142/$MIRROR"
10    
11    echo "Using $MIRROR"
12    
13    debootstrap --include=psmisc,less,strace,bzip2,make,gcc,libc6-dev,dropbear,lxc,libc6-amd64 squeeze squeeze http://$MIRROR
14    
15  echo -e "root\nroot" | chroot squeeze passwd  echo -e "root\nroot" | chroot squeeze passwd
16  echo -e "auto lo\niface lo inet loopback\nauto eth0\niface eth0 inet dhcp" \  echo -e "auto lo\niface lo inet loopback\nauto eth0\niface eth0 inet dhcp" \

Legend:
Removed from v.256  
changed lines
  Added in v.257

  ViewVC Help
Powered by ViewVC 1.1.26