X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lbuild-initvm.sh;h=fdea57ab3ec4d8e857d6c57fa6286ebf21840973;hb=84047d3f1c08703c162f4a51bd888f0eba68d7fd;hp=16180889b330cd86443936491943041cb8dc58e9;hpb=93850b7577c51f8b06a4c0bc3ef58068e5541e06;p=build.git 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