archinstall-profiles/install.sh

21 lines
361 B
Bash
Raw Normal View History

2022-10-21 11:24:51 -04:00
#!/bin/sh
2022-10-21 11:32:45 -04:00
set -e
2022-10-21 11:24:51 -04:00
cd "$(dirname "$0")"
2022-10-21 11:16:42 -04:00
[ -z "$1" ] && echo 'usage: ./install <PROFILE>' && exit 1
2022-10-21 11:24:51 -04:00
if [ -d "./$1" ]; then
cd "$1"
else
echo 'no such profile'
exit 1
fi
2022-10-21 11:32:45 -04:00
echo 'Remember to add a password for root and the user!'
read DUMMY
2022-10-21 11:16:42 -04:00
archinstall \
--config user_configuration.json \
--disk-layout user_disk_layout.json \
--creds user_credentials.json