New installation method

This commit is contained in:
Marcel Stangenberger 2025-04-05 10:11:03 +02:00
parent 3bfa4c5988
commit c690fcb6fe
4 changed files with 18 additions and 7 deletions

View File

@ -15,12 +15,8 @@ gpg --output user_credentials.json --decrypt user_credentials.crypt
### Usage
1. Boot from Arch Linux iso
2. Download the encrypted credentials file using curl
2. Run pre-install script
```
curl -O https://git.xo.nl/marcel/archinstall/raw/master/users.crypt)
bash -c "$(curl -fsSL https://git.xoservice.nl/marcel/archlinux/raw/master/pre/run.sh)"
```
3. Decrypt using above command
4. Run the archinstall command
```
archinstall --config https://git.xo.nl/marcel/archinstall/raw/master/user_configuration.json --creds ./users.json --silent)
```
3. Follow any given steps

15
pre/run.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
REPO=https://git.xoservice.nl/marcel/archlinux
curl -O $REPO/raw/master/pre/users.crypt
gpg --output users.json --decrypt users.crypt
if test -s ./users.json;
then
archinstall --config $REPO/raw/master/pre/config.json --creds ./users.json --silent
reboot
else
echo "users.json not found in current directory or file is empty"
exit 1
fi