exit 1
}
+function _warn() {
+ echo "warning: $*"
+}
+
# process user defined configuration
. ${RAPIDO_DIR}/rapido.conf \
|| _fail "rapido.conf missing - see rapido.conf.example"
[ -f "$CEPH_KEYRING" ] || _fail "missing $CEPH_KEYRING"
}
+function _rt_require_fstests() {
+ if [ -n "$FSTESTS_DIR" ]; then
+ # FSTESTS_DIR is an old config parameter which was used when
+ # Dracut didn't correctly install files directly nested under
+ # "--include <dir>" paths, only subdirectories were handled.
+ # To work around this, FSTESTS_DIR referred to a path with an
+ # immediate xfstests subdirectory.
+ [ -n "$FSTESTS_SRC" ] \
+ && _fail "both FSTESTS_DIR and FSTESTS_SRC defined"
+ FSTESTS_SRC="${FSTESTS_DIR}/xfstests"
+ _warn "FSTESTS_DIR deprecated, use FSTESTS_SRC=${FSTESTS_SRC}"
+ fi
+
+ [ -n "$FSTESTS_SRC" ] || _fail "FSTESTS_SRC not configured"
+ [ -d "$FSTESTS_SRC" ] || _fail "missing $FSTESTS_SRC directory"
+ [ -x "$FSTESTS_SRC/check" ] || _fail "missing $FSTESTS_SRC/check"
+}
+
function _rt_require_zram_params {
# initramfs ramdisk details
ZRAM_INITRD_SIZE="1G"