blob: a1630620d4d5ca662e2140093efcb7b8ac40d988 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
package_manager=apt-get
update() {
sudo "$package_manager" update
}
install() {
(( $# )) || return 0
sudo "$package_manager" install -y "$@"
}
upgrade() {
sudo "$package_manager" update
sudo "$package_manager" upgrade -y
}
pre_install() {
echo "Package perl-open is not available at Ubuntu repositories" >&2
update
if [[ $INSTALL_TSOCKS == true ]]; then
install tsocks
fi
# asan an ubsan have to be installed together to not mix up gcc versions
if install libasan5; then
install libubsan1
else
echo "Latest libasan5 is not available" >&2
echo " installing libasan2 and corresponding libubsan0" >&2
install libasan2
install libubsan0
fi
if ! install rdma-core; then
echo "Package rdma-core is avaliable at Ubuntu 18 [universe] repositorium" >&2
install rdmacm-utils
install ibverbs-utils
else
LIBRXE_INSTALL=false
fi
if ! install libpmempool1; then
echo "Package libpmempool1 is available at Ubuntu 18 [universe] repositorium" >&2
fi
if ! install clang-tools; then
echo "Package clang-tools is available at Ubuntu 18 [universe] repositorium" >&2
fi
if ! install --no-install-suggests --no-install-recommends open-isns-utils; then
echo "Package open-isns-utils is available at Ubuntu 18 [universe] repositorium" >&2
fi
# Package name for Ubuntu 18 is targetcli-fb but for Ubuntu 16 it's targetcli
if ! install targetcli-fb; then
install targetcli
fi
# On Ubuntu 20.04 (focal) btrfs-tools are available under different name - btrfs-progs
if ! install btrfs-tools; then
install btrfs-progs
fi
}
packages=(
valgrind
jq
nvme-cli
ceph
gdb
fio
librbd-dev
linux-headers-generic
libgflags-dev
autoconf
automake
libtool
libmount-dev
open-iscsi
libglib2.0-dev
libpixman-1-dev
astyle
elfutils
libelf-dev
flex
bison
libswitch-perl
gdisk
socat
sshfs
sshpass
python3-pandas
bc
smartmontools
wget
)
if [[ $OSID != ubuntu ]]; then
echo "Located apt-get package manager, but it was tested for Ubuntu only"
fi
|