dracut-functions: use "type" to determine the need of sourcing dracut-logger
parent
e94f4cce47
commit
d6d53f60b2
|
|
@ -20,7 +20,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [[ ! $__DRACUT_LOGGER__ ]]; then
|
if ! type dinfo >/dev/null 2>&1; then
|
||||||
. "$dracutbasedir/dracut-logger"
|
. "$dracutbasedir/dracut-logger"
|
||||||
dlog_init
|
dlog_init
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue