Merge pull request #17 from luis-henrix/pr_hardcoded_lib_paths
[ddiss/rapido.git] / cut_blktests_rbd.sh
1 #!/bin/bash
2 #
3 # Copyright (C) SUSE LINUX GmbH 2017, all rights reserved.
4 #
5 # This library is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published
7 # by the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) version 3.
9 #
10 # This library is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
13 # License for more details.
14
15 RAPIDO_DIR="$(realpath -e ${0%/*})"
16 . "${RAPIDO_DIR}/runtime.vars"
17
18 _rt_require_dracut_args
19 _rt_require_ceph
20 _rt_require_blktests
21
22 dracut  --install "tail blockdev ps rmdir resize dd vim grep find df sha256sum \
23                    getopt tput wc column blktrace losetup parted truncate \
24                    lsblk strace which awk bc touch cut chmod true false mktemp \
25                    killall id sort uniq date expr tac diff head dirname seq \
26                    basename tee egrep hexdump sync fio logger cmp stat" \
27         --include "$CEPH_CONF" "/etc/ceph/ceph.conf" \
28         --include "$CEPH_KEYRING" "/etc/ceph/keyring" \
29         --include "$RBD_NAMER_BIN" "/usr/bin/ceph-rbdnamer" \
30         --include "$RBD_UDEV_RULES" "/usr/lib/udev/rules.d/50-rbd.rules" \
31         --include "$BLKTESTS_SRC" "/blktests" \
32         --include "$RAPIDO_DIR/blktests_rbd_autorun.sh" "/.profile" \
33         --include "$RAPIDO_DIR/rapido.conf" "/rapido.conf" \
34         --include "$RAPIDO_DIR/vm_autorun.env" "/vm_autorun.env" \
35         --add-drivers "scsi_debug null_blk loop" \
36         --modules "bash base network ifcfg" \
37         $DRACUT_EXTRA_ARGS \
38         $DRACUT_OUT