first-boot.d scripts log to a file:
Log first-boot.d script output to a file, to ease troubleshooting, since the first-boot scripts are removed from the system after running, even in case of failure. Change-Id: I07d5c782dd918a804e054bf08efce89ed9442e0c
This commit is contained in:
parent
7ae4fb5c1c
commit
5544da4605
@ -143,7 +143,10 @@ function prepare_first_boot () {
|
|||||||
set -e
|
set -e
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
run-parts /etc/first-boot.d
|
touch /var/log/first-boot.d.log
|
||||||
|
chmod 0600 /var/log/first-boot.d.log
|
||||||
|
|
||||||
|
run-parts /etc/first-boot.d >> /var/log/first-boot.d.log 2>&1
|
||||||
rm -fr /etc/first-boot.d
|
rm -fr /etc/first-boot.d
|
||||||
mv /etc/rc.local.REAL /etc/rc.local
|
mv /etc/rc.local.REAL /etc/rc.local
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user