forked from rapido-linux/rapido
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cut_nvme_rdma.sh
executable file
·31 lines (28 loc) · 1.19 KB
/
cut_nvme_rdma.sh
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
#!/bin/bash
#
# Copyright (C) SUSE LINUX GmbH 2017, all rights reserved.
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) version 3.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
RAPIDO_DIR="$(realpath -e ${0%/*})"
. "${RAPIDO_DIR}/runtime.vars"
_rt_require_dracut_args
_rt_require_lib "libkeyutils.so.1"
dracut --install "tail blockdev ps rmdir resize dd vim grep find df sha256sum \
strace mkfs.xfs killall nvme \
$LIBS_INSTALL_LIST" \
--include "$RAPIDO_DIR/nvme_rdma_autorun.sh" "/.profile" \
--include "$RAPIDO_DIR/rapido.conf" "/rapido.conf" \
--include "$RAPIDO_DIR/vm_autorun.env" "/vm_autorun.env" \
--add-drivers "nvme-core nvme-fabrics nvme-rdma nvmet nvmet-rdma \
rdma_rxe zram lzo ib_core ib_uverbs rdma_ucm" \
--modules "bash base network ifcfg" \
$DRACUT_EXTRA_ARGS \
$DRACUT_OUT