base/dracut-lib.sh: turn on PS4 for bash debugging

master
Harald Hoyer 2011-04-11 13:34:06 +02:00
parent 8f5d36896d
commit 0d837ebf2a
1 changed files with 3 additions and 1 deletions

View File

@ -200,6 +200,8 @@ setdebug() {
RD_DEBUG=no
if getargbool 0 rd.debug -y rdinitdebug -y rdnetdebug; then
RD_DEBUG=yes
[ -n "$BASH" ] && \
export PS4='${BASH_SOURCE}@${LINENO}(${FUNCNAME[0]}): ';
fi
fi
export RD_DEBUG