796f168c5c
Add additional tox job 'buildimage-lxd' which produces lxd metadata package and rootfs with installs nfs-ganesha, unfs3 and cifs. Co-Authored-By: Alexey Ovchinnikov <aovchinnikov@mirantis.com> Change-Id: Ia5a4701a828aeef93840f9c0a0e1d0bc0f4a5a2e
36 lines
951 B
Bash
Executable File
36 lines
951 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
SCRIPTDIR=$(dirname $0)
|
|
|
|
# Install required packages
|
|
install-packages git-core cmake build-essential libkrb5-dev bison flex
|
|
|
|
# Build nfs-ganesha
|
|
cd /usr/src
|
|
# TODO(u_glide): Move branch to config option through "environment.d"
|
|
git config --global http.sslVerify false
|
|
git clone --depth 5 --recursive -b "V2.2-stable" \
|
|
https://github.com/nfs-ganesha/nfs-ganesha.git
|
|
cd nfs-ganesha
|
|
mkdir build && cd build
|
|
cmake ../src && make
|
|
|
|
# Install nfs-ganesha
|
|
sudo make install
|
|
|
|
# (aovchinnikov): This will be used later on when all peculiarities of
|
|
# running ganesha inside a container are sorted out.
|
|
#sudo cp ../src/scripts/ganeshactl/org.ganesha.nfsd.conf /etc/dbus-1/system.d/
|
|
#install -D -g root -o root -m 0755 \
|
|
# ${SCRIPTDIR}/nfs-ganesha /etc/init.d/nfs-ganesha
|
|
#sudo update-rc.d nfs-ganesha defaults
|
|
|
|
# Remove sources
|
|
cd /usr/src && rm -fR nfs-ganesha
|