X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvagrant%2Fbuild.sh;h=34873f96eaead9eb02df4f2facceac168571b040;hb=28262a06d8ff36056ff62269a53d1f6bfcdda5e4;hp=76838e28a62bf87206bcafe46ef62bcb5315cbbc;hpb=64543be4d4abbbc4353ce525382c58db34975946;p=vpp.git 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