dracut-functions: try to find dracutbasedir, if not set
parent
d6d53f60b2
commit
0874654c78
|
@ -20,6 +20,13 @@
|
||||||
# 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 ! [[ $dracutbasedir ]]; then
|
||||||
|
dracutbasedir=${BASH_SOURCE[0]%/*}
|
||||||
|
[[ $dracutbasedir = "dracut-functions" ]] && dracutbasedir="."
|
||||||
|
[[ $dracutbasedir ]] || dracutbasedir="."
|
||||||
|
dracutbasedir="$(readlink -f $dracutbasedir)"
|
||||||
|
fi
|
||||||
|
|
||||||
if ! type dinfo >/dev/null 2>&1; then
|
if ! type dinfo >/dev/null 2>&1; then
|
||||||
. "$dracutbasedir/dracut-logger"
|
. "$dracutbasedir/dracut-logger"
|
||||||
dlog_init
|
dlog_init
|
||||||
|
|
Loading…
Reference in New Issue