19 lines
332 B
Bash
Executable File
19 lines
332 B
Bash
Executable File
#!/bin/bash
|
|
source /init_functions.sh
|
|
create_mounts
|
|
load_modules
|
|
create_certs
|
|
setup_network
|
|
|
|
# TODO: replace hardcoded URL with guest_api
|
|
echo "http://192.168.122.226/base_arch2.tar.xz" > /tmp/install_url
|
|
if [[ -f "/tmp/install_url" ]]; then
|
|
install_os
|
|
else
|
|
mount_root
|
|
fi
|
|
|
|
github_ssh_key
|
|
|
|
exec switch_root /mnt /sbin/init "$@"
|