Commit bea89200 authored by Xiaowu Zhang's avatar Xiaowu Zhang

remove useless code

parent 627155f8
......@@ -11,15 +11,12 @@ source 00env.sh
# useful tools
apt -y install sudo wget tree pip
git config --local user.email "ophelie.gagnard@nexedi.com"
git config --local user.name "Ophelie Gagnard"
# building initramfs
apt -y install dracut-core dracut dracut-network sbsigntool pip
apt -y build-dep linux
apt -y install libncurses-dev
pip install slapos.libnetworkcache
cd generation
rm -f *"$MCA_PACKAGE_NAME"*
rm -f *"$FLB_PACKAGE_NAME"*
rm -f *"$PLG_PACKAGE_NAME"*
......
......@@ -28,11 +28,6 @@ cd dracut.module
sed "${dracut_conf_regex}" dracut.conf.in > dracut.conf
cd -
# Add files in initramfs
INCLUDE_DIR=files-to-include
rm -rf "$INCLUDE_DIR"
mkdir -p "$INCLUDE_DIR"
cp -r "$KERNEL_DIR"/lib "$INCLUDE_DIR"
export DRACUT_KMODDIR_OVERRIDE=1
# Create an initramfs image
......
#!/bin/bash
set -e
# get the root of the git repository (requires git to be installed)
GIT_ROOT=`git rev-parse --show-toplevel`
cd "$GIT_ROOT"/installation
source 00env.sh
# useful tools
apt -y install sudo wget tree pip
git config --global user.email "ophelie.gagnard@nexedi.com"
git config --global user.name "Ophelie Gagnard"
# the next line should be enabled when the following is merged and an egg containing the changes is released:
# https://lab.nexedi.com/nexedi/slapos.libnetworkcache/merge_requests/8
#pip install slapos.libnetworkcache
NC_BRANCH=cmdline-selection
NC_DIR="${NC_BRANCH}"_slapos.libnetworkcache # NC for NetworkCache
cd ..
if [ ! -d "$NC_DIR" ]; then
git clone https://lab.nexedi.com/Ophelie/slapos.libnetworkcache.git "$NC_DIR"
cd "$NC_DIR"
git checkout "$NC_BRANCH"
cd ..
pip install -e "$NC_DIR"
fi
cd installation
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment