From 1441ca5dd39f9f68d419c2cacc8f81ca47d81568 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Mon, 11 Jul 2022 15:35:17 +0200
Subject: [PATCH] oniro-linux.conf: Include DISTRO as part of the hostname

This gives a bit more clarity on what is running on a system without
sacrificing on flexibility.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-oniro-core/conf/distro/oniro-linux.conf | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oniro-core/conf/distro/oniro-linux.conf b/meta-oniro-core/conf/distro/oniro-linux.conf
index 84278f57..dba12a36 100644
--- a/meta-oniro-core/conf/distro/oniro-linux.conf
+++ b/meta-oniro-core/conf/distro/oniro-linux.conf
@@ -120,3 +120,6 @@ IMAGE_LOG_CHECK_EXCLUDES:libc-musl += "Failed opening /etc/nsswitch.conf"
 # We run a read-only rootfs but we want shadow because it includes subid
 # configuration used by podman in rootless mode.
 ROOTFS_RO_UNNEEDED:remove = "shadow"
+
+# Set default hostname to reflect the DISTRO
+hostname:pn-base-files = "${DISTRO}-${MACHINE}"
-- 
GitLab