3 # Copyright (C) SUSE LINUX GmbH 2016, all rights reserved.
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.
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.
15 RAPIDO_DIR="$(realpath -e ${0%/*})"
16 . "${RAPIDO_DIR}/runtime.vars"
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 eject strace mkfs.vfat mountpoint /lib64/libkeyutils.so.1 \
22 mktemp touch sync cryptsetup" \
23 --include "$CEPH_CONF" "/etc/ceph/ceph.conf" \
24 --include "$CEPH_KEYRING" "/etc/ceph/keyring" \
25 --include "$RBD_NAMER_BIN" "/usr/bin/ceph-rbdnamer" \
26 --include "$RBD_UDEV_RULES" "/usr/lib/udev/rules.d/50-rbd.rules" \
27 --include "$RAPIDO_DIR/usb_rbd_autorun.sh" "/.profile" \
28 --include "$RAPIDO_DIR/rapido.conf" "/rapido.conf" \
29 --include "$RAPIDO_DIR/vm_autorun.env" "/vm_autorun.env" \
30 --include "$RBD_USB_SRC/rbd-usb.sh" "/bin/rbd-usb.sh" \
31 --include "$RBD_USB_SRC/conf-fs.sh" "/bin/conf-fs.sh" \
32 --include "$RBD_USB_SRC/rbd-usb.env" "/usr/lib/rbd-usb.env" \
33 --include "$RBD_USB_SRC/rbd-usb.conf" "/etc/rbd-usb/rbd-usb.conf" \
34 --add-drivers "target_core_mod target_core_iblock usb_f_tcm \
35 usb_f_mass_storage zram dm-crypt" \
36 --no-hostonly --no-hostonly-cmdline \
37 --modules "bash base network ifcfg" \
38 --tmpdir "$RAPIDO_DIR/initrds/" \