FlintyLemming 8cdd0fb0b1 fix(setup): handle unterminated passwd, make shell change non-fatal
shadow's commonio_open() refuses to modify a user/group database whose
last line has no trailing newline, failing with a misleading
"cannot open /etc/passwd". Under 'set -e' this aborted the whole setup
at the fish step (and would later break docker's groupadd/usermod too).

- add ensure_db_trailing_newlines() to normalize /etc/passwd, /etc/group
  and /etc/shadow before any user/group modification
- switch default shell via 'usermod -s' with a 'chsh' fallback, warning
  instead of aborting the script on failure
2026-07-23 13:56:20 +08:00
2025-04-08 23:23:16 +08:00
2025-07-25 09:30:53 +08:00
2025-04-07 20:52:40 +08:00
2025-06-19 10:50:45 +08:00
S
Description
No description provided
620 KiB
Languages
Shell 57.9%
Python 42.1%