X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.common;h=51cb0d0f38532776eda8832b28b4d3c0a978d68b;hb=40e3e110d1a943d1ba3f4abba70f3ce505ad9983;hp=7acfbb3eb7675c9faa7c5e08f27c785eea7f8b57;hpb=862ea1525607b04e2f786ba95cc5146750ec332c;p=build.git diff --git a/build.common b/build.common index 7acfbb3e..51cb0d0f 100644 --- a/build.common +++ b/build.common @@ -13,20 +13,6 @@ # for locating pkgs.py export PATH=.:$PATH -# old guests have e.g. mount in /bin but this is no longer part of -# the standard PATH in recent hosts after usrmove, so let's keep it simple -export PATH=$PATH:/bin:/sbin - -# would be much simpler if enter-lxc-namespace was looking along a PATH... -function bin_in_container () { - lxc=$1; shift - binary=$1; shift - for path in $(echo $PATH | sed -e 's,:, ,g' ); do - [ -f /vservers/$lxc/$path/$binary ] && { echo $path/$binary; return; } - done - echo bin_in_container_cannot_find_$binary -} - # returns 'Fedora' or 'CentOS' for now function pl_getDistro() { if [ -f "/etc/redhat-release" ] ; then @@ -38,8 +24,10 @@ function pl_getDistro() { elif [ -f /etc/debian_version ] ; then case $(cat /etc/debian_version) in 6.*) distro=squeeze ;; - 7.*) distro=wheezy ;; - *) distro=unknown.debian.in.build.common ;; + 7.*) distro=wheezy ;; + # might be that I'm getting 'jessie'sid' just because it's still testing.. + 8.*|jessie*) distro=jessie ;; + *) distro=unknown.debian.in.build.common ;; esac fi [ -z "$distro" ] && { echo "build.common.pl_getDistro-unknown"; exit 1; } @@ -78,7 +66,7 @@ function pl_getReleaseName () { [Ss]L*) releasename=sl$release ;; - squeeze|wheezy|oneiric|precise|quantal|raring|saucy) + squeeze|wheezy|jessie|oneiric|precise|quantal|raring|saucy) releasename=$distro ;; *)