do emergency_shell in die() if rd.debug=1
If I said 'rd.debug=1' I should get to debug the system before it dies, right?master
parent
4744e27350
commit
78274fe2b4
|
|
@ -307,6 +307,7 @@ die() {
|
||||||
} >> $hookdir/emergency/01-die.sh
|
} >> $hookdir/emergency/01-die.sh
|
||||||
|
|
||||||
> /run/initramfs/.die
|
> /run/initramfs/.die
|
||||||
|
emergency_shell
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -814,7 +815,6 @@ emergency_shell()
|
||||||
warn $@
|
warn $@
|
||||||
source_hook "$hook"
|
source_hook "$hook"
|
||||||
echo
|
echo
|
||||||
[ -e /run/initramfs/.die ] && exit 1
|
|
||||||
if getargbool 1 rd.shell -y rdshell || getarg rd.break rdbreak; then
|
if getargbool 1 rd.shell -y rdshell || getarg rd.break rdbreak; then
|
||||||
echo "Dropping to debug shell."
|
echo "Dropping to debug shell."
|
||||||
echo
|
echo
|
||||||
|
|
@ -838,6 +838,7 @@ emergency_shell()
|
||||||
# cause a kernel panic
|
# cause a kernel panic
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
[ -e /run/initramfs/.die ] && exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Retain the values of these variables but ensure that they are unexported
|
# Retain the values of these variables but ensure that they are unexported
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue