Bashify drivers_dir check
parent
ded38dbfbd
commit
0b90cfaa9f
2
dracut
2
dracut
|
@ -136,7 +136,7 @@ esac
|
||||||
[[ $1 ]] && outfile=$(readlink -f $1) || outfile="/boot/initrd-$kernel.img"
|
[[ $1 ]] && outfile=$(readlink -f $1) || outfile="/boot/initrd-$kernel.img"
|
||||||
|
|
||||||
srcmods="/lib/modules/$kernel/"
|
srcmods="/lib/modules/$kernel/"
|
||||||
[ -n "$drivers_dir" ] && srcmods="$drivers_dir"
|
[[ $drivers_dir ]] && srcmods="$drivers_dir"
|
||||||
export srcmods
|
export srcmods
|
||||||
|
|
||||||
if [[ -f $outfile && ! $force ]]; then
|
if [[ -f $outfile && ! $force ]]; then
|
||||||
|
|
Loading…
Reference in New Issue