diff --git a/mklni b/mklni index 4c97e65..6b85222 100755 --- a/mklni +++ b/mklni @@ -236,6 +236,16 @@ install_chroot() exit 1 } + log "Installing lon-tool" + { + chroot "$CHROOTDIR" git clone --quiet https://git.timoxa0.su/timoxa0/lon-tool.git /lon-tool-src && + chroot "$CHROOTDIR" /bin/bash -c 'cd /lon-tool-src && rev=$(git describe --abbrev=4 --dirty --always --tags) && go get git.timoxa0.su/timoxa0/lon-tool/cmd && go build -ldflags "-X git.timoxa0.su/timoxa0/lon-tool/cmd.version=$rev" -o /bin/lon-tool main.go' + + } || { + log "Failed to install lon-tool" error + exit 1 + } + detach_chroot || { log "Failed to detach chroot" error exit 1