dracut.sh: source dracut-version.sh earlier than dracut-functions.sh
Otherwise dracut-logger.sh outputs an empty version on journal testing. Aug 20 10:15:49 lenovo dracut[11144]: dracut- Aug 20 10:15:49 lenovo dracut[11148]: Executing: /sbin/dracutmaster
parent
8e3f653749
commit
e27ecc9ae8
|
|
@ -863,6 +863,10 @@ if [[ $print_cmdline ]]; then
|
|||
kmsgloglvl=0
|
||||
fi
|
||||
|
||||
if [[ -f $dracutbasedir/dracut-version.sh ]]; then
|
||||
. $dracutbasedir/dracut-version.sh
|
||||
fi
|
||||
|
||||
if [[ -f $dracutbasedir/dracut-functions.sh ]]; then
|
||||
. $dracutbasedir/dracut-functions.sh
|
||||
else
|
||||
|
|
@ -881,10 +885,6 @@ if ! [[ $print_cmdline ]]; then
|
|||
rm -fr -- ${initdir}/*
|
||||
fi
|
||||
|
||||
if [[ -f $dracutbasedir/dracut-version.sh ]]; then
|
||||
. $dracutbasedir/dracut-version.sh
|
||||
fi
|
||||
|
||||
# Verify bash version, current minimum is 3.1
|
||||
if (( BASH_VERSINFO[0] < 4 )); then
|
||||
dfatal 'You need at least Bash 4 to use dracut, sorry.'
|
||||
|
|
|
|||
Loading…
Reference in New Issue