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