dracut: do not use "derror", when we cannot find dracut-functions

This commit is contained in:
Harald Hoyer 2011-02-23 13:32:31 +01:00
parent 41f90cbe50
commit 6f590cd1c5

6
dracut
View File

@ -215,9 +215,9 @@ fw_dir=${fw_dir//:/ }
if [[ -f $dracutbasedir/dracut-functions ]]; then if [[ -f $dracutbasedir/dracut-functions ]]; then
. $dracutbasedir/dracut-functions . $dracutbasedir/dracut-functions
else else
derror "Cannot find $dracutbasedir/dracut-functions." echo "Cannot find $dracutbasedir/dracut-functions." >&2
derror "Are you running from a git checkout?" echo "Are you running from a git checkout?" >&2
derror "Try passing -l as an argument to $0" echo "Try passing -l as an argument to $0" >&2
exit 1 exit 1
fi fi