mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-26 16:25:20 +03:00
dracut-functions: use "type" to determine the need of sourcing dracut-logger
This commit is contained in:
parent
e94f4cce47
commit
d6d53f60b2
@ -20,7 +20,7 @@
|
||||
# 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"
|
||||
dlog_init
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user