Skip to contentSkip to conversation

arm-autonomy/xenguest-manager: Document VOLATILE_LOG_DIR in recipe

PATCH In review Nathan Dunne 2 participants 2 messages Jan 7, 2021 – Jan 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm-autonomy/xenguest-manager: Document VOLATILE_LOG_DIR in recipe

From: Nathan Dunne <[email protected]>

Added a comment to the xenguest-manager recipe to inform the user that the default state is a volatile log dir, and how to persist logs across reboots.

Issue-Id: SCM-1860

Change-Id Ie0c92b05d11543a1524cbb7a53cd845bc63ecd3d
---
 .../recipes-extended/xenguest/xenguest-manager.bb      | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta-arm-autonomy/recipes-extended/xenguest/xenguest-manager.bb +10 -0
index 16a0700..ffb0fc3 100644
@@ -2,6 +2,16 @@
 #
 # xenguest-manager is a tool to control xen guest (e.g. create, start, stop)
 #
+# By default xenguest-manager logs to /var/log when in verbose mode, which is a
+# Volatile directory. To persist logs across reboots the following needs to be
+# added to either local.conf or distro.conf
+#
+#   VOLATILE_LOG_DIR="no"
+#
+# Read more here: https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-VOLATILE_LOG_DIR
+#
+# When this is enabled, logrotate will monitor the file to ensure it does not grow
+# excessively large. See files/logrotate-xenguest
 
 DESCRIPTION = "Xen Guest Manager"
 LICENSE = "MIT"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 10 lines · Nathan Dunne

From: Nathan Dunne <[email protected]>

Added a comment to the xenguest-manager recipe to inform the user that the default state is a volatile log dir, and how to persist logs across reboots.

Issue-Id: SCM-1860

Change-Id Ie0c92b05d11543a1524cbb7a53cd845bc63ecd3d

---

Pulled into master.

Thanks,
Jon

Quoted 31 lines
 .../recipes-extended/xenguest/xenguest-manager.bb      | 10 ++++++++++
 1 file changed, 10 insertions(+)
meta-arm-autonomy/recipes-extended/xenguest/xenguest-manager.bb +10 -0
index 16a0700..ffb0fc3 100644
@@ -2,6 +2,16 @@
 #
 # xenguest-manager is a tool to control xen guest (e.g. create, start, stop)
 #
+# By default xenguest-manager logs to /var/log when in verbose mode, which is a
+# Volatile directory. To persist logs across reboots the following needs to be
+# added to either local.conf or distro.conf
+#
+#   VOLATILE_LOG_DIR="no"
+#
+# Read more here: https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-VOLATILE_LOG_DIR
+#
+# When this is enabled, logrotate will monitor the file to ensure it does not grow
+# excessively large. See files/logrotate-xenguest
 
 DESCRIPTION = "Xen Guest Manager"
 LICENSE = "MIT"
Signature · 1 line
2.17.1