diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-21 00:49:53 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-21 00:49:53 -0600 |
| commit | a6fbca10b26a7267f6ef50cef5cd27bad659b096 (patch) | |
| tree | a5ef4307aa96f5e5336913edbb23b625c1a3b5fd | |
| parent | a68150f7f0436e8260c9c0257f98b3a0a07b629a (diff) | |
| download | archangel-a6fbca10b26a7267f6ef50cef5cd27bad659b096.tar.gz archangel-a6fbca10b26a7267f6ef50cef5cd27bad659b096.zip | |
Restore file ownership after build and rename todo.org
- Add chown step to build.sh to restore ownership to invoking user
after mkarchiso completes (fixes root-owned out/work/profile dirs)
- Rename TODO.org to todo.org (lowercase)
- Add todo item for post-install reboot countdown timer
| -rwxr-xr-x | build.sh | 7 | ||||
| -rw-r--r-- | todo.org (renamed from TODO.org) | 17 |
2 files changed, 24 insertions, 0 deletions
@@ -454,6 +454,13 @@ chmod +x "$PROFILE_DIR/airootfs/usr/local/bin/"* info "Building ISO (this will take a while)..." mkarchiso -v -w "$WORK_DIR" -o "$OUT_DIR" "$PROFILE_DIR" +# Restore ownership to the user who invoked sudo +# mkarchiso runs as root and creates root-owned files +if [[ -n "$SUDO_USER" ]]; then + info "Restoring ownership to $SUDO_USER..." + chown -R "$SUDO_USER:$SUDO_USER" "$OUT_DIR" "$WORK_DIR" "$PROFILE_DIR" 2>/dev/null || true +fi + # Report results ISO_FILE=$(ls -t "$OUT_DIR"/*.iso 2>/dev/null | head -1) if [[ -f "$ISO_FILE" ]]; then @@ -424,6 +424,23 @@ PACKAGES_TO_REMOVE=b43-fwcutter Support --dry-run flag that shows what would be done without executing. Useful for testing configuration changes and debugging. +** TODO [#C] Add 1-minute countdown timer before automatic reboot after installation +Display a countdown timer (1 minute) with red text after installation completes, before automatically rebooting the system. +Gives user time to review the installation summary and cancel if needed. + +*** Implementation +In install-archzfs, after displaying the completion message: +#+BEGIN_SRC bash +# Red text countdown before reboot +echo -e "\n\033[0;31mSystem will reboot in 60 seconds. Press Ctrl+C to cancel.\033[0m" +for i in {60..1}; do + printf "\r\033[0;31mRebooting in %2d seconds...\033[0m" "$i" + sleep 1 +done +echo +reboot +#+END_SRC + * Resolved ** DONE [#B] Add config file information to README Config file format documented in README.org with full reference and examples. |
