From: Thierry Parmentelat Date: Fri, 30 Oct 2015 15:33:14 +0000 (+0100) Subject: make debugmode can push this code on board a node in debug mode (aka safeboot) X-Git-Tag: bootmanager-5.3-2~5 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=9c2e812336b46a5340dde6401bf55b8b9660fec0 make debugmode can push this code on board a node in debug mode (aka safeboot) --- diff --git a/Makefile b/Makefile index d7ad72e..f7add42 100644 --- a/Makefile +++ b/Makefile @@ -50,3 +50,14 @@ tags: git ls-files | xargs etags .PHONY: tags + +########## +# this one is for overwriting the code in /tmp/source on a node +# that is in debug mode +ifndef NODE +debugmode: + echo run make debugmode NODE=a-real-ple-node +else +debugmode: + rsync -av -e 'ssh -i /Users/parmentelat/.ssh/ple_debug.rsa' ./source/ root@$(NODE):/tmp/source/ +endif