v4.2: first-boot auto-expand, SSH key regeneration, forced password change

- Added nova-firstboot systemd service (runs once on first boot)
- Auto-expands root partition to fill SD card (fdisk + resize2fs)
- Removes pre-generated SSH host keys (sshd regenerates fresh)
- Forces root password change on first login (shadow last_change=0)
- Compiled e2fsprogs 1.47.2 from source for resize2fs
- Updated os-release, motd, and build script
This commit is contained in:
blazblue547-afk committed 2026-06-14 13:01:34 -04:00
1 parent b1f913ff14
commit 79f80c645d
6 files changed
+88 -1

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
[Unit]
Description=Nova OS First-Boot Setup
Documentation=https://github.com/blazblue547-afk/nova-os
After=local-fs.target
Before=sshd.service network.target multi-user.target
ConditionPathExists=!/etc/nova-firstboot-done
[Service]
Type=oneshot
ExecStart=/usr/sbin/nova-firstboot
StandardOutput=journal+console
StandardError=journal+console
RemainAfterExit=yes
TimeoutSec=300
[Install]
WantedBy=multi-user.target