 
 Upstream-Status: Pending
 
+Co-authored-by: Haris Okanovic <haris.okanovic@ni.com>
 Signed-off-by: Bill Pittman <bill.pittman@ni.com>
 ---
- include/context.h |  2 ++
- src/bundle.c      |  3 +++
- src/install.c     |  2 +-
- src/main.c        | 27 ++++++++++++++++-----------
- 4 files changed, 22 insertions(+), 12 deletions(-)
+ include/context.h    |  2 ++
+ src/bundle.c         | 78 +++++++++++++++++++++++++-------------------
+ src/install.c        |  2 +-
+ src/main.c           | 27 ++++++++-------
+ src/update_handler.c |  2 +-
+ 5 files changed, 64 insertions(+), 47 deletions(-)
 
 diff --git a/include/context.h b/include/context.h
-index b0bcfba..ba54e81 100644
+index b0bcfba64855806b14bc7a7e1108d7342c124463..ba54e81eaefe34a7f5b26c9571d770bd2dc2f15a 100644
 --- a/include/context.h
 +++ b/include/context.h
 @@ -43,6 +43,8 @@ typedef struct {

 	/* for storing installation runtime informations */
 	RContextInstallationInfo *install_info;
diff --git a/src/bundle.c b/src/bundle.c
index 9ca512c..e0fb5a1 100644
--- a/src/bundle.c
+++ b/src/bundle.c
@@ -326,6 +326,9 @@ static gboolean sign_bundle(const gchar *bundlename, GError **error)
 	g_autoptr(GFileOutputStream) bundlestream = NULL;
 	guint64 offset;
 
+	if (r_context()->bundle_nosig) 
+		return TRUE;
+
 	g_assert_nonnull(r_context()->certpath);
 	g_assert_nonnull(r_context()->keypath);
 
diff --git a/src/install.c b/src/install.c
index 6f535f7..3665b49 100644
--- a/src/install.c
+++ b/src/install.c
@@ -1283,7 +1283,7 @@ gboolean do_install_bundle(RaucInstallArgs *args, GError **error)

From 29f2eeb0d7744840f668dc616f349a9bfbad073b Mon Sep 17 00:00:00 2001
From: Bill Pittman <bill.pittman@ni.com>
Date: Fri, 28 Jun 2019 12:37:23 -0500
Subject: [PATCH] rauc: Add command line option to skip bundle verification

Conditionally remove bundle verification checks when operating
