Add a script for generating the arch iso
This commit is contained in:
parent
c2e862ad1a
commit
1c845c3e1d
2 changed files with 13 additions and 2 deletions
|
@ -23,10 +23,12 @@ nix develop
|
||||||
To create a `.iso` file for installing Arch Linux, run the following command:
|
To create a `.iso` file for installing Arch Linux, run the following command:
|
||||||
|
|
||||||
```sh
|
```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
|
### 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.
|
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
9
archiso/scripts/build.sh
Executable 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";
|
Loading…
Reference in a new issue