在debconf模板中显示完整错误日志

时间:2019-07-03 03:39:11

标签: linux bash ubuntu debian debconf

每当基于Ubuntu的自定义自定义映像安装后遇到问题时,我都会尝试使用debconf错误模板显示syslog。

问题是,我无法使用dbconf模板跟踪syslog并完整显示日志。系统日志仅显示1行。

我尝试使用其他类型的debconf模板,但其他类型的模板似乎也无法解释$符号中的代码。

Template: tsp/notification
Type: error
Description: ERROR - Postinstallation failed!
 You may want to try to reinstall one more time.
 $(tail -n 200 /var/log/syslog)

我希望整个syslog文件都显示在屏幕上(在使用debconf模板的错误对话框中),但是只显示日志的第一行。

0 个答案:

没有答案