Rework `build_iso.sh`
Move the development message to motd. Move archinstall build from zprofile to a script. Create a service that is enabled on boot to run the script. Wait for completion of the service at root login shell (zprofile).
Currently the build of archinstall in the ISO environment is output to the console. This is problematic because there is not a scrollback buffer in the console to review the output. The changes in this pull request will allow the review of the build with journalctl -u build-archinstall.
Another issue with the current implementation is changing tty or executing tmux and opening panes and windows will read and execute the zprofile causing archinstall to be built and installed again. This pull request does not have this problem because the script to build and install archinstall is started by the service.
The script was never really meant to be used on a broader scale. It's only real purpose was to run in https://github.com/archlinux/archinstall/blob/1df53c1406960b5d7b17bb7ee84431f8de7bfbdf/.github/workflows/iso-build.yaml#L35
That said the improvements might be quite useful. Let me test this out before merging :)
Understood. After some more thought on the matter I feel this pull request should not be merged. At least not yet.