From 1113d839493ef7c8eb924a82375ce77c5c5fb6b6 Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Wed, 15 Oct 2014 14:54:20 +0000 Subject: [PATCH] added dev mode + chroot_in_target helper --- images/lib.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/images/lib.sh b/images/lib.sh index af0256e..e78ee50 100644 --- a/images/lib.sh +++ b/images/lib.sh @@ -63,8 +63,16 @@ archive_target() { sudo tar -C "$TARGET" -czf "$NAME.tar.gz" . } +chroot_in_target() { + chroot "$TARGET" +} + cli() { case $1 in + "dev") + build_image + exit 0 + ;; "tarball") build_image archive_target @@ -77,6 +85,6 @@ cli() { exit 0 ;; esac - echo >&2 "usage: [DEBUG=1] $0 (tarball|image)" + echo >&2 "usage: [DEBUG=1] $0 (tarball|image|dev)" exit 1 }