Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install stage0: log to firstrunsetup #6988

Merged
merged 1 commit into from
Mar 27, 2024
Merged

install stage0: log to firstrunsetup #6988

merged 1 commit into from
Mar 27, 2024

Conversation

wiedehopf
Copy link
Contributor

@wiedehopf wiedehopf commented Mar 27, 2024

When debugging firstrun issues, stage0 doesn't have any logs which makes it hard to debug.

Log stage0 to /var/tmp/dietpi/logs/dietpi-firstrun-setup.log
Change stage1 logging to append to this log instead of clobbering it.

This could probably be also fixed to improving logging to dietpi-update.log (it only starts with 'Applying pre-patches' and doesn't include the requirement check / checking for available updates)
But in case of install stage 0 / 1 failure, the user is asked to provide the firstrun-setup.log so it seems somewhat logical to just use that.

dietpi/dietpi-login Outdated Show resolved Hide resolved
When debugging firstrun issues, stage0 doesn't have any logs which makes
it hard to debug.

Log stage0 to /var/tmp/dietpi/logs/dietpi-firstrun-setup.log
Change stage1 logging to append to this log instead of clobbering it.
@MichaIng MichaIng merged commit 43b8bd7 into MichaIng:dev Mar 27, 2024
1 check passed
@MichaIng
Copy link
Owner

Indeed it could be also done in dietpi-update.log, but it has an own purpose that, at least with persistent/full logging enabled, it contains only actually applied updates, not all output of every update check, done daily.

Since this is a crucial part of the first run setup, it makes sense to have also the update and those check results in the related president log file, which is also shown in the error handler when running it interactively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting CONFIG_NTP_MODE=0 (in order to then install chrony) makes initial install fail
2 participants