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