Browse Source

fix(dracut.sh): don't override path with foreign sysroot

Don't override PATH with foreign sysroot and
trim the sysroot prefix from NPATH elements.

Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
master
Zoltán Böszörményi 3 years ago committed by Jóhann B. Guðmundsson
parent
commit
bbe1434fca
  1. 3
      dracut.sh

3
dracut.sh

@ -748,11 +748,12 @@ for i in $DRACUT_PATH; do @@ -748,11 +748,12 @@ for i in $DRACUT_PATH; do
if [ -L "$dracutsysrootdir$i" ]; then
rl=$(readlink -f $dracutsysrootdir$i)
fi
rl="${rl#$dracutsysrootdir}"
if [[ "$NPATH" != *:$rl* ]] ; then
NPATH+=":$rl"
fi
done
export PATH="${NPATH#:}"
[[ -z "$dracutsysrootdir" ]] && export PATH="${NPATH#:}"
unset NPATH

# these options add to the stuff in the config file

Loading…
Cancel
Save