iankelling.org
/
git
/
automated-distro-installer
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
expand to multiple hosts starting with tp
[automated-distro-installer]
/
fai
/
config
/
hooks
/
instsoft.DEFAULT
1
#!/bin/bash
2
3
# exit for any vm which is not our test vm
4
if
ifclass VM
&& !
ifclass demohost
;
then
5
exit
0
6
fi
7
8
f
=
$target
/
root
/
keyscript
9
cat
>
$f
<<EOFOUTER
10
#!/bin/sh
11
cat <<'EOF'
12
$(cat /var/lib/fai/config/distro-install-common/luks/host-
$HOSTNAME
)
13
EOF
14
EOFOUTER
15
16
chmod
+
x
$f