From 100b2a5ead497cc67a4cd913a51aeb596c68bb7a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 7 Apr 2018 22:17:56 +0100 Subject: [PATCH] Set golang version when creating image --- src/freedombone-image-customise | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index a62b883c..bd80362c 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -1825,6 +1825,7 @@ image_setup_utils() { echo "export PATH=\$PATH:\$GOPATH" >> "${rootdir}/home/go/.bashrc" chroot "$rootdir" chown -R go:go /home/go cp "${rootdir}/home/go/go${GO_VERSION}/bin/"* "${rootdir}/usr/bin" + echo "upgrade_golang:$GO_VERSION" >> "${rootdir}/root/${PROJECT_NAME}-completed.txt" # Tomb chroot "$rootdir" apt-get -yq install zsh pinentry-curses @@ -1832,7 +1833,7 @@ image_setup_utils() { cd "$rootdir/root/build/tomb" || exit 468368345425 git checkout "$TOMB_COMMIT" -b "$TOMB_COMMIT" chroot "$rootdir" cd /root/build/tomb && make install - echo "tomb commit:$TOMB_COMMIT" >> "$rootdir/root/freedombone-completed.txt" + echo "tomb commit:$TOMB_COMMIT" >> "$rootdir/root/${PROJECT_NAME}-completed.txt" if ! grep -q '\* hard maxsyslogins' "$rootdir/etc/security/limits.conf"; then echo '* hard maxsyslogins 10' >> "$rootdir/etc/security/limits.conf"