3cf222cc77f4d1a2ad0bdeed4e038b5e1d6eb748
6 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
9 echo "error: expect a hostname in \$1 "
14 [[ $host == frodo
]] && scp
/a
/c
/machine_specific
/frodo
/subdir_files
/.ssh
/* frodo
:.ssh
/
15 if [[ -e /var
/cache
/pacman
/pkg
]]; then
16 darkhttpd
/var
/cache
/pacman
/pkg
&
17 url
=http
://$HOSTNAME:8080
22 hooks
/partition.DEFAULT
25 sudo scp
-r /a
/bin
/fai
/arch-init
{,-chroot} \
26 ${fai_files[@]/#//a/bin/fai/fai/config/} \
28 /q
/root
/luks
/q
/root
/shadow root@
$host:
29 # creating shadow file string:
30 # on debian, you can use mkpasswd -m sha-512 to generate a pass.
31 # arch doesn't have this program. instead, you can do passwd,
32 # and extract it from the shadow file.
33 ssh root@
$host bash
-x .
/arch-init
$host $url
34 ssh root@
$host reboot now ||
[[ $?
== 255 ]]
36 # ssh $host /a/bin/distro-begin
39 # todo: this doesn't work. figure out why.