allow dracut.conf to be local if -l is set
parent
ccd71eeb17
commit
b2714d05e2
11
dracut
11
dracut
|
@ -8,8 +8,17 @@
|
|||
# Copyright 2008, Red Hat, Inc. Jeremy Katz <katzj@redhat.com>
|
||||
# GPLv2 header here
|
||||
|
||||
for i in "$@"; do
|
||||
case $i in
|
||||
-l|--local) allowlocal="yes" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
[ -f /etc/dracut.conf ] && . /etc/dracut.conf
|
||||
if [[ $allowlocal && -f dracut.conf ]]; then
|
||||
. dracut.conf
|
||||
else
|
||||
[ -f /etc/dracut.conf ] && . /etc/dracut.conf
|
||||
fi
|
||||
|
||||
while (($# > 0)); do
|
||||
case $1 in
|
||||
|
|
Loading…
Reference in New Issue