From 22fd162777d4955e747805063db709f1924f9ffa Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 25 May 2009 14:09:57 +0200 Subject: [PATCH] for "-l" search dracut-functions relative to dracut path --- dracut | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dracut b/dracut index d5747c291..489966763 100755 --- a/dracut +++ b/dracut @@ -73,14 +73,15 @@ done [[ $omit_dracutmodules_l ]] && omit_dracutmodules=$omit_dracutmodules_l [[ $modules_l ]] && modules=$modules_l -[[ $allowlocal && -f dracut-functions ]] && dsrc="." || dsrc=/usr/lib/dracut +[[ $allowlocal && -f "$(dirname $0)/dracut-functions" ]] && dsrc="$(dirname $0)" || dsrc=/usr/lib/dracut if [[ -f $dsrc/dracut-functions ]]; then . $dsrc/dracut-functions else - echo "Cannot find dracut-functions. Are you running from a git checkout?" + echo "Cannot find $dsrc/dracut-functions. Are you running from a git checkout?" echo "Try passing -l as an argument to $0" exit 1 fi + dracutfunctions=$dsrc/dracut-functions export dracutfunctions -- 2.47.3