From 752886a83163e908b7e957596a46961244db50cc Mon Sep 17 00:00:00 2001 From: Pawel Langowski Date: Wed, 30 Oct 2024 11:34:10 +0100 Subject: [PATCH] recipes-core/images/core-image-minimal.bbappend: Use encrypted root password Signed-off-by: Pawel Langowski --- recipes-core/images/core-image-minimal.bbappend | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes-core/images/core-image-minimal.bbappend b/recipes-core/images/core-image-minimal.bbappend index d3791fc..739fedb 100644 --- a/recipes-core/images/core-image-minimal.bbappend +++ b/recipes-core/images/core-image-minimal.bbappend @@ -10,5 +10,7 @@ IMAGE_INSTALL:append = " \ " INHERIT += "extrausers" -RTE_ROOT_PWD = "meta-rte" -EXTRA_USERS_PARAMS = "usermod -P ${RTE_ROOT_PWD} root;" + +# Result of `printf "%q" $(mkpasswd -m sha256crypt meta-rte)` +RTE_ROOT_PWD = "\$5\$8XCtHnklsZSCLoAi\$4lHnmijhTjSPuuvddA9ktyVa5X4nAOXS9M4AWqOrnt1" +EXTRA_USERS_PARAMS = "usermod -p '${RTE_ROOT_PWD}' root"