output error message, if dracut-functions not found
parent
9b4191d065
commit
adbc8a42b6
6
dracut
6
dracut
|
|
@ -33,7 +33,13 @@ done
|
||||||
[[ $modules_l ]] && modules=$modules_l
|
[[ $modules_l ]] && modules=$modules_l
|
||||||
|
|
||||||
[[ $allowlocal && -f dracut-functions ]] && dsrc="." || dsrc=/usr/lib/dracut
|
[[ $allowlocal && -f dracut-functions ]] && dsrc="." || dsrc=/usr/lib/dracut
|
||||||
|
if [[ -f $dsrc/dracut-functions ]]; then
|
||||||
. $dsrc/dracut-functions
|
. $dsrc/dracut-functions
|
||||||
|
else
|
||||||
|
echo "Cannot find 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
|
dracutfunctions=$dsrc/dracut-functions
|
||||||
export dracutfunctions
|
export dracutfunctions
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue