From: Thierry Parmentelat Date: Thu, 23 Jan 2014 13:54:39 +0000 (+0100) Subject: fix for ubuntu, forgot some $verser in there X-Git-Tag: before_libvirt_121~37 X-Git-Url: http://git.onelab.eu/?p=build.git;a=commitdiff_plain;h=84047d3f1c08703c162f4a51bd888f0eba68d7fd fix for ubuntu, forgot some $verser in there --- diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index 16180889..fdea57ab 100755 --- a/lbuild-initvm.sh +++ b/lbuild-initvm.sh @@ -722,12 +722,12 @@ function devel_or_vtest_tools () { ;; debootstrap) # for ubuntu - if grep -iq ubuntu /vservers/$vserver/rootfs/etc/lsb-release 2> /dev/null; then + if grep -iq ubuntu /vservers/$lxc/rootfs/etc/lsb-release 2> /dev/null; then # on ubuntu, at this point we end up with a single feed in /etc/apt/sources.list # we need at least to add the 'universe' feed for python-rpm - ( cd /vservers/$vserver/rootfs/etc/apt ; head -1 sources.list | sed -e s,main,universe, > sources.list.d/universe.list ) + ( cd /vservers/$lxc/rootfs/etc/apt ; head -1 sources.list | sed -e s,main,universe, > sources.list.d/universe.list ) # also adding a link to updates sounds about right - ( cd /vservers/$vserver/rootfs/etc/apt ; head -1 sources.list | sed -e 's, main,-updates main,' > sources.list.d/updates.list ) + ( cd /vservers/$lxc/rootfs/etc/apt ; head -1 sources.list | sed -e 's, main,-updates main,' > sources.list.d/updates.list ) fi chroot $rootfs_path apt-get update for package in $packages ; do