X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.common;h=268eaa7365d91a89b56f3fb67bfff178aaeb490a;hb=b30d20ef9023e9f2799dd84a0472c4ddf84b5a18;hp=7acfbb3eb7675c9faa7c5e08f27c785eea7f8b57;hpb=2b80d206e5eb9eedbad5929919210a5f959ae897;p=build.git diff --git a/build.common b/build.common index 7acfbb3e..268eaa73 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