# load dm_crypt if it is not already loaded
[ -d /sys/module/dm_crypt ] || modprobe dm_crypt
-. /lib/dracut-crypt-lib.sh
+command -v ask_for_password > /dev/null || . /lib/dracut-crypt-lib.sh
#
# Open LUKS device
#!/bin/sh
-. /lib/dracut-crypt-lib.sh
+command -v test_dev > /dev/null || . /lib/dracut-crypt-lib.sh
real_keydev="$1"
keypath="$2"
# livenetroot - fetch a live image from the network and run it
type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh
-
-. /lib/url-lib.sh
+type fetch_url > /dev/null 2>&1 || . /lib/url-lib.sh
PATH=/usr/sbin:/usr/bin:/sbin:/bin
RETRIES=${RETRIES:-100}
# root=live:[url-to-backing-file]
[ -z "$root" ] && root=$(getarg root=)
-. /lib/url-lib.sh
+get_url_handler
+command -v get_url_handler > /dev/null || . /lib/url-lib.sh
# live updates
updates=$(getarg live.updates=)
#!/bin/sh
type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh
-. /lib/cifs-lib.sh
+type cifs_to_var > /dev/null 2>&1 || . /lib/cifs-lib.sh
[ "$#" = 3 ] || exit 1
#
type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh
-. /lib/cifs-lib.sh
+type cifs_to_var > /dev/null 2>&1 || . /lib/cifs-lib.sh
# This script is sourced, so root should be set. But let's be paranoid
[ -z "$root" ] && root=$(getarg root=)
#!/bin/sh
type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh
-. /lib/nfs-lib.sh
+type nfs_to_var > /dev/null 2>&1 || . /lib/nfs-lib.sh
[ "$#" = 3 ] || exit 1