Chroot: Call a latecommand script to finish install

Set a correct rsyslog, logrotate,… configuration. I call the same script
at the end of all PXE install or for LXC templates.
This commit is contained in:
Jeremy Gardais 2019-04-05 13:37:22 +02:00
parent 521b7ea84a
commit 2f4d4c25d1
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 6 additions and 0 deletions

View File

@ -261,6 +261,12 @@ printf '%b\n' "127.0.0.1 ${new_hostname}" >> /target/etc/hosts
## }}}
# }}}
# Finish {{{
## Call a latecommand script {{{
wget -O /tmp/latecommand.tar.gz "https://git.ipr.univ-rennes1.fr/cellinfo/tftpboot/raw/master/scripts/latecommand.tar.gz" --no-check-certificate
tar xzf /tmp/latecommand.tar.gz -C /target/tmp/
chroot /target /bin/sh /target/tmp/latecommand/post.stretch.sh
## }}}
## SSH {{{
### Allow root connections - this should be fixed if it works
sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /target/etc/ssh/sshd_config