Add a script for generating the arch iso

This commit is contained in:
Manuel Thalmann 2024-06-22 21:07:44 +02:00
parent 98b05c753b
commit 6b066c1bb0
2 changed files with 13 additions and 2 deletions

View file

@ -23,10 +23,12 @@ nix develop
To create a `.iso` file for installing Arch Linux, run the following command:
```sh
sudo mkarchiso .
./scripts/build.sh
```
This will generate a `.iso` file in a new folder called `out`. This `.iso` file can be used for installing Arch Linux.
The script accepts all additional arguments which are accepted by the `mkarchiso` command.
Running this script will generate a `.iso` file in a new folder called `out`. This `.iso` file can be used for installing Arch Linux.
### Updating
This project also contains scripts for updating the files in case Arch Linux's `releng` template (the `archiso` template used by this project) changed.

9
archiso/scripts/build.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
contextRoot="$(mktemp -d)";
rootHome="$contextRoot/airootfs/root";
profileDir="/mnt/archiso-valhalla";
mkdir -p "$rootHome";
git clone .. "$rootHome/PortValhalla";
sudo mount --mkdir -t overlay overlay -o lowerdir=.:"$contextRoot" "$profileDir";
sudo mkarchiso "$@" "$profileDir";
sudo umount "$profileDir";