Browse Source

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

master
Harald Hoyer 14 years ago
parent
commit
0d837ebf2a
  1. 2
      modules.d/99base/dracut-lib.sh

2
modules.d/99base/dracut-lib.sh

@ -200,6 +200,8 @@ setdebug() { @@ -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

Loading…
Cancel
Save