|
|
@ -108,8 +108,13 @@ export PATH |
|
|
|
set -x |
|
|
|
set -x |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[ $allowlocal && -f "$(readlink -f $(dirname $0))/dracut-functions" ]] && dsrc="$(dirname $0)" || dsrc=$dracutbasedir |
|
|
|
|
|
|
|
|
|
|
|
# if we were not passed a config file, try the default one |
|
|
|
# if we were not passed a config file, try the default one |
|
|
|
[[ ! -f $conffile ]] && conffile="/etc/dracut.conf" |
|
|
|
if [[ ! -f $conffile ]]; then |
|
|
|
|
|
|
|
[[ $allowlocal ]] || conffile="/etc/dracut.conf" |
|
|
|
|
|
|
|
[[ $allowlocal ]] && conffile="$dracutbasedir/dracut.conf" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# source our config file |
|
|
|
# source our config file |
|
|
|
[[ -f $conffile ]] && . "$conffile" |
|
|
|
[[ -f $conffile ]] && . "$conffile" |
|
|
@ -134,8 +139,6 @@ fw_dir=${fw_dir//:/ } |
|
|
|
|
|
|
|
|
|
|
|
[[ $hostonly = yes ]] && hostonly="-h" |
|
|
|
[[ $hostonly = yes ]] && hostonly="-h" |
|
|
|
|
|
|
|
|
|
|
|
[[ $allowlocal && -f "$(readlink -f $(dirname $0))/dracut-functions" ]] && dsrc="$(dirname $0)" || dsrc=$dracutbasedir |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -f $dsrc/dracut-functions ]]; then |
|
|
|
if [[ -f $dsrc/dracut-functions ]]; then |
|
|
|
. $dsrc/dracut-functions |
|
|
|
. $dsrc/dracut-functions |
|
|
|
else |
|
|
|
else |
|
|
|