archinstall-profiles/install.sh

17 lines
285 B
Bash
Raw Normal View History

2022-10-21 11:24:51 -04:00
#!/bin/sh
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:16:42 -04:00
archinstall \
--config user_configuration.json \
--disk-layout user_disk_layout.json \
--creds user_credentials.json