update_engine: Log the rootfs and stateful partition's lsb-release
postinst cannot not do this anymore, so we need to log it in the UE itself.
BUG=chromium:786225
TEST=cros_flash two times and made sure they are logged.
Change-Id: I2fbc593f55e6425127de283c78e4170460bac0d9
Reviewed-on: https://chromium-review.googlesource.com/791515
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Alex Deymo <deymo@google.com>
diff --git a/image_properties.h b/image_properties.h
index ba6ce44..e03b8dc 100644
--- a/image_properties.h
+++ b/image_properties.h
@@ -68,8 +68,8 @@
// value may be returned instead.
ImageProperties LoadImageProperties(SystemState* system_state);
-// Loads the mutable image properties from the stateful partition if found or the
-// system image otherwise.
+// Loads the mutable image properties from the stateful partition if found or
+// the system image otherwise.
MutableImageProperties LoadMutableImageProperties(SystemState* system_state);
// Stores the mutable image properties in the stateful partition. Returns
@@ -77,6 +77,9 @@
bool StoreMutableImageProperties(SystemState* system_state,
const MutableImageProperties& properties);
+// Logs the image properties.
+void LogImageProperties();
+
// Sets the root_prefix used to load files from during unittests to
// |test_root_prefix|. Passing a nullptr value resets it to the default.
namespace test {