cut_nvme_local.sh: remove unnecessary Ceph dependencies
[ddiss/rapido.git] / cut_nvme_local.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 KVER="`cat ${KERNEL_SRC}/include/config/kernel.release`" || exit 1
19 dracut --no-compress  --kver "$KVER" \
20         --install "tail blockdev ps rmdir resize dd vim grep find df sha256sum \
21                    strace mkfs.xfs /lib64/libkeyutils.so.1" \
22         --include "$RAPIDO_DIR/nvme_local_autorun.sh" "/.profile" \
23         --include "$RAPIDO_DIR/rapido.conf" "/rapido.conf" \
24         --include "$RAPIDO_DIR/vm_autorun.env" "/vm_autorun.env" \
25         --add-drivers "nvme-core nvme-fabrics nvme-loop nvmet zram lzo" \
26         --no-hostonly --no-hostonly-cmdline \
27         --modules "bash base network ifcfg" \
28         --tmpdir "$RAPIDO_DIR/initrds/" \
29         --force $DRACUT_OUT