我正在尝试将其添加late_command
到我的preseed.cfg
文件中,但出现以下错误。
命令:
d-i preseed/late_command string \
no_proxy=0,1,2,3,4,5,6,7,8,9 preseed_fetch /scripts/preseed_late_commands.sh /tmp/preseed_late_commands.sh ; \
/target/usr/bin/dos2unix /tmp/preseed_late_commands.sh || true; \
log-output -t preseed_late_commands.sh sh /tmp/preseed_late_commands.sh
我收到的错误:
Execution of preseeded command "d-i preseed/late_command string \
no_proxy=0,1,2,3,4,5,6,7,8,9 preseed_fetch /scripts/preseed_late_commands.sh /tmp/preseed_late_commands.sh ; \
/target/usr/bin/dos2unix /tmp/preseed_late_commands.sh || true; \
log-output -t preseed_late_commands.sh sh /tmp/preseed_late_commands.sh" failed with exit code 2.
信息:
操作系统:Debian 11(Bullseye)
preseed.cfg
目录:http/d-i/bullseye/preseed.cfg
preseed_late_commands.sh
目录:http/d-i/bullseye/scripts/preseed_late_commands.sh
错误图片:
我应该怎么做才能让这个命令运行?
如何以及在哪里可以查看实时日志(控制台输出)或找到日志文件?