From 2f4d4c25d1deccef2bf257d20706ec0e2f4044a4 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 5 Apr 2019 13:37:22 +0200 Subject: [PATCH] Chroot: Call a latecommand script to finish install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set a correct rsyslog, logrotate,… configuration. I call the same script at the end of all PXE install or for LXC templates. --- debian/chroot.install | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/chroot.install b/debian/chroot.install index 07d13da..1fdbec3 100755 --- a/debian/chroot.install +++ b/debian/chroot.install @@ -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