summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2019-04-15 16:30:35 +0200
committerKim Hagen <kim.sidney@gmail.com>2019-04-15 16:30:35 +0200
commit401165bc85fcb9069182765a38c1289bd12fd6e9 (patch)
tree4a15597c730791a15e84d9867b2b6e3b7118c1e0 /Makefile
parent812c2aa56d15176001fc295fd1716e0c8fed3cef (diff)
downloadvyos-build-401165bc85fcb9069182765a38c1289bd12fd6e9.tar.gz
vyos-build-401165bc85fcb9069182765a38c1289bd12fd6e9.zip
add debug build for GCE
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 04e62e85..3bfa9597 100644
--- a/Makefile
+++ b/Makefile
@@ -106,6 +106,19 @@ GCE: clean prepare
cd $(build_dir)
@../scripts/build-GCE-image
+.PHONY: GCE-debug
+.ONESHELL:
+GCE-debug: clean prepare
+ @set -e
+ @echo "It's not like I'm building this specially for you or anything!"
+ mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d
+ cp tools/cloud-init/GCE/99-debug-user.chroot build/config/hooks/live/
+ cp tools/cloud-init/GCE/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/
+ cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/
+ cp -f tools/cloud-init/GCE/config.boot.default-debug build/config/includes.chroot/opt/vyatta/etc/config.boot.default
+ cd $(build_dir)
+ @../scripts/build-GCE-image
+
.PHONY: AWS
.ONESHELL:
AWS: clean prepare