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

DietPi-Automation | Allow first run update and setup without manual login #2520

Closed
MichaIng opened this issue Feb 8, 2019 · 3 comments
Closed
Milestone

Comments

@MichaIng
Copy link
Owner

MichaIng commented Feb 8, 2019

Ref: https://dietpi.com/phpbb/viewtopic.php?f=11&t=5457

  • Either allow dietpi-update and dietpi-software to run without login: Replace $HOME and ~/ by /root and test/check other similar cases where commands/variables might need login before being available.
  • Or place [email protected] autologin drop-in, as we do with dietpi-autostart console autologin.

Password change (at least in case dietpi is still used) and license accept prompt should still be done on first login.

@MichaIng MichaIng added this to the Prototyping milestone Mar 12, 2019
@MichaIng
Copy link
Owner Author

First step, which anyway makes sense independently from this request, replaced $HOME/~ with /root since we force root user to run the script anyway and /root is his home even defined in FHS: 9e9c765

@MichaIng
Copy link
Owner Author

Another vote: #3553

@MichaIng MichaIng modified the milestones: Prototyping, v6.33 Sep 13, 2020
@MichaIng
Copy link
Owner Author

I actually seems to work now, although not sure what has changed. The [email protected] override is created during dietpi-firstboot.service execution for a while already and at least on my last tests it was effective on first boot already, even without an explicit systemctl daemon-reload. Requires some more tests on different devices (different boot speeds and orders as of hardware initiation).

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

No branches or pull requests

1 participant