From 97b173c1c67d2b181232b854f8f8f022737764eb Mon Sep 17 00:00:00 2001
From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
Date: Thu, 31 Mar 2022 18:18:35 +0200
Subject: [PATCH] sysota: enable reboot delay quirk

This allows using sysota with rauc-hawkbit-updater. It works around the
issue where r-h-u fails to talk to hawkbit whenever the post-install
handler reboots the system.

Set the delay to 180 seconds, which should be enough for the updater to
finish talking to hawkbit, and then some more.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
---
 .../recipes-core/sysota/files/qemux86-64/sysotad.conf          | 3 +++
 meta-oniro-core/recipes-core/sysota/files/qemux86/sysotad.conf | 3 +++
 .../recipes-core/sysota/files/raspberrypi4/sysotad.conf        | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/meta-oniro-core/recipes-core/sysota/files/qemux86-64/sysotad.conf b/meta-oniro-core/recipes-core/sysota/files/qemux86-64/sysotad.conf
index a2636d39..0488748f 100644
--- a/meta-oniro-core/recipes-core/sysota/files/qemux86-64/sysotad.conf
+++ b/meta-oniro-core/recipes-core/sysota/files/qemux86-64/sysotad.conf
@@ -15,3 +15,6 @@ Model=QEMU Virtual Machine
 
 [Compatible]
 Machine=qemux86-64
+
+[Quirks]
+RebootDelay=180
diff --git a/meta-oniro-core/recipes-core/sysota/files/qemux86/sysotad.conf b/meta-oniro-core/recipes-core/sysota/files/qemux86/sysotad.conf
index 9170c522..e45d5355 100644
--- a/meta-oniro-core/recipes-core/sysota/files/qemux86/sysotad.conf
+++ b/meta-oniro-core/recipes-core/sysota/files/qemux86/sysotad.conf
@@ -15,3 +15,6 @@ Model=QEMU Virtual Machine
 
 [Compatible]
 Machine=qemux86
+
+[Quirks]
+RebootDelay=180
diff --git a/meta-oniro-core/recipes-core/sysota/files/raspberrypi4/sysotad.conf b/meta-oniro-core/recipes-core/sysota/files/raspberrypi4/sysotad.conf
index f9a81bc9..dadd6a71 100644
--- a/meta-oniro-core/recipes-core/sysota/files/raspberrypi4/sysotad.conf
+++ b/meta-oniro-core/recipes-core/sysota/files/raspberrypi4/sysotad.conf
@@ -12,3 +12,6 @@ Model=Raspberry Pi 4B
 
 [Compatible]
 Machine=raspberrypi4-64
+
+[Quirks]
+RebootDelay=180
-- 
GitLab