From b315cc0ede214479b036a696269cb00973db0755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=C3=ADaz?= Date: Mon, 2 Jul 2018 14:57:14 -0500 Subject: [PATCH] Add haveged to rpb-console-image, not to -desktop nor -weston MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A couple of bugs are related to lack of entropy, which can be very easily solved by having haveged running. HAVEGE algorithm explained here: http://www.irisa.fr/caps/projects/hipsor/misc.php#exectime regarding how randomness is obtained and about its unpredictability. While rng-tools is the "preferred" method, enough entropy might be very difficult in a headless development board, where haveged would definitely be a great addition. Signed-off-by: Daniel Díaz --- recipes-samples/images/rpb-console-image.bb | 1 + recipes-samples/images/rpb-desktop-image.bb | 2 ++ recipes-samples/images/rpb-weston-image.bb | 2 ++ 3 files changed, 5 insertions(+) diff --git a/recipes-samples/images/rpb-console-image.bb b/recipes-samples/images/rpb-console-image.bb index 676ff66..fef1764 100644 --- a/recipes-samples/images/rpb-console-image.bb +++ b/recipes-samples/images/rpb-console-image.bb @@ -6,6 +6,7 @@ IMAGE_FEATURES += "package-management ssh-server-openssh hwcodecs" CORE_IMAGE_BASE_INSTALL += " \ packagegroup-rpb \ + haveged \ " # docker pulls runc/containerd, which in turn recommend lxc unecessarily diff --git a/recipes-samples/images/rpb-desktop-image.bb b/recipes-samples/images/rpb-desktop-image.bb index d78d433..3b2beee 100644 --- a/recipes-samples/images/rpb-desktop-image.bb +++ b/recipes-samples/images/rpb-desktop-image.bb @@ -14,6 +14,8 @@ CORE_IMAGE_BASE_INSTALL += " \ packagegroup-rpb-x11 \ " +CORE_IMAGE_BASE_INSTALL_remove = "haveged" + EXTRA_USERS_PARAMS += "\ usermod -a -G video linaro; \ " diff --git a/recipes-samples/images/rpb-weston-image.bb b/recipes-samples/images/rpb-weston-image.bb index 07d9886..4576030 100644 --- a/recipes-samples/images/rpb-weston-image.bb +++ b/recipes-samples/images/rpb-weston-image.bb @@ -14,6 +14,8 @@ CORE_IMAGE_BASE_INSTALL += " \ packagegroup-rpb-weston \ " +CORE_IMAGE_BASE_INSTALL_remove = "haveged" + EXTRA_USERS_PARAMS += "\ usermod -a -G weston-launch,video linaro; \ "