| 1 |
#!/bin/sh
|
| 2 |
set -e
|
| 3 |
|
| 4 |
[ "$TERM_TYPE" != network ] && exit 0
|
| 5 |
|
| 6 |
. /usr/share/debconf/confmodule
|
| 7 |
|
| 8 |
TEMPLATE_ROOT=debian-installer/network-console
|
| 9 |
|
| 10 |
DIR=/etc/ssh/
|
| 11 |
|
| 12 |
mkdir /target/$DIR
|
| 13 |
cp $DIR/ssh_host_rsa_key* /target/$DIR
|
| 14 |
cp $DIR/sshd_config_target /target/$DIR/sshd_config
|
| 15 |
|
| 16 |
echo 'installer:x:0:0:installer:/:/usr/sbin/base-config-network-console' >> /target/etc/passwd
|
| 17 |
grep "^installer:" /etc/shadow >> /target/etc/shadow
|
| 18 |
|
| 19 |
apt-install network-console-config
|
| 20 |
|
| 21 |
db_input critical $TEMPLATE_ROOT/prebaseconfig-reminder
|
| 22 |
db_go
|
| 23 |
|