Updated Building and Testing (markdown)

Anton Hvornum 2021-03-14 22:30:27 +01:00
parent 8912d76b20
commit 31cccfcbce
1 changed files with 6 additions and 4 deletions

@ -31,14 +31,17 @@ While standing in the `archiso` folder, create and add the following:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && sh -c "cd /root/archinstall-git; git config --global pull.rebase false; git pull; cp examples/guided.py ./; python guided.py"
EOF
This will auto-run when the ISO boots.
It will perform four simple tasks:
This will auto-run when the ISO boots.<br>
It will perform four simple tasks **every login on tty1**:
1. Enter the `archinstall-git` folder
2. `git config` and `git pull` each time
3. copy `guided.py` into the root git folder due to how the import works in Python
4. Finally it will run the latest version of `guided.py`
This makes it easy to test the latest version, by simply logging out and back in - and the four steps will get repeated.<br>
No need to reboot or re-build.
### Step 5: Build
[Archiso](https://wiki.archlinux.org/index.php/Archiso#Build_the_ISO) has great information and the latest info.
@ -120,5 +123,4 @@ sudo qemu-system-x86_64 \
-drive file=$(ls -t $ARCHISO_FOLDER/out/*.iso | head -n 1),media=cdrom,if=none,format=raw,cache=none,id=cdrom0
```
Modify `BRANCH` to suit your needs.
This enables quick testing, there's no need to re-boot between each try, simply press `Ctrl+D` in the terminal to re-log and the latest version will be fetched and executed, thanks to the `.zprofile`.
Modify `BRANCH` to suit your needs.