source_conf sources all *.conf files of a directory
init will now source all /etc/conf.d/*.conf files
netif="$1"
root="$2"
-# read static conf settings
-for conf in conf/conf.d/*; do
- [ -f ${conf} ] && . ${conf}
-done
+source_all /etc/conf.d
# If it's not iscsi we don't continue
[ "${root%%:*}" = "iscsi" ] || exit 1
for f in "/$1"/*.sh; do [ -f "$f" ] && . "$f"; done
}
+source_conf() {
+ local f
+ [ "$1" ] && [ -d "/$1" ] || return
+ for f in "/$1"/*.conf; do [ -f "$f" ] && . "$f"; done
+}
+
die() {
{
echo "<1>dracut: FATAL: $@";
UDEVVERSION=$(udevadm --version)
+source_conf /etc/conf.d
+
# run scriptlets to parse the command line
getarg 'rdbreak=cmdline' && emergency_shell "Break before cmdline"
source_all cmdline