diff options
Diffstat (limited to 'extras/vagrant')
-rwxr-xr-x | extras/vagrant/build.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/extras/vagrant/build.sh b/extras/vagrant/build.sh index 76838e28a62..34873f96eae 100755 --- a/extras/vagrant/build.sh +++ b/extras/vagrant/build.sh @@ -26,6 +26,12 @@ elif [ -f /etc/redhat-release ];then DISTRIB_RELEASE=`lsb_release -sr` DISTRIB_CODENAME=`lsb_release -sc` DISTRIB_DESCRIPTION=`lsb_release -sd` +elif [ -f /etc/os-release ];then + . /etc/os-release + DISTRIB_ID=$ID + DISTRIB_RELEASE=$VERSION_ID + DISTRIB_CODENAME=$VERSION + DISTRIB_DESCRIPTION=$PRETTY_NAME fi KERNEL_OS=`uname -o` KERNEL_MACHINE=`uname -m` @@ -65,8 +71,11 @@ fi # Build and install packaging $SUDOCMD make bootstrap + if [ $DISTRIB_ID == "Ubuntu" ]; then $SUDOCMD make pkg-deb +elif [ $DISTRIB_ID == "debian" ]; then + $SUDOCMD make pkg-deb elif [ $DISTRIB_ID == "CentOS" ]; then (cd $VPP_DIR/vnet ;$SUDOCMD aclocal;$SUDOCMD automake -a) $SUDOCMD make pkg-rpm |