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:
parent
521b7ea84a
commit
2f4d4c25d1
|
@ -261,6 +261,12 @@ printf '%b\n' "127.0.0.1 ${new_hostname}" >> /target/etc/hosts
|
||||||
## }}}
|
## }}}
|
||||||
# }}}
|
# }}}
|
||||||
# Finish {{{
|
# 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 {{{
|
## SSH {{{
|
||||||
### Allow root connections - this should be fixed if it works
|
### Allow root connections - this should be fixed if it works
|
||||||
sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /target/etc/ssh/sshd_config
|
sed -i 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /target/etc/ssh/sshd_config
|
||||||
|
|
Loading…
Reference in New Issue