From 7f5d6538c1b0e4807c67830b328d4616e2df8d15 Mon Sep 17 00:00:00 2001 From: Pawel Konczalski Date: Fri, 25 Mar 2022 11:59:44 +0100 Subject: [PATCH] Add interpolation note for dynamic-login password Change-Id: I416c60347679dc648914e7c1b02761882bae8d4a --- diskimage_builder/elements/dynamic-login/README.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/diskimage_builder/elements/dynamic-login/README.rst b/diskimage_builder/elements/dynamic-login/README.rst index 0bb510d2..5265d674 100644 --- a/diskimage_builder/elements/dynamic-login/README.rst +++ b/diskimage_builder/elements/dynamic-login/README.rst @@ -27,9 +27,10 @@ rootpwd :Description: If the operator append rootpwd="$ENCRYPTED_PASSWORD" to the kernel command line on boot, the helper script will set the root password to the one specified by this option. Note that - this password must be **encrypted**. Encrypted passwords - can be generated using the ``openssl`` command, e.g: - *openssl passwd -1*. + this password must be **encrypted**. Interpolation can be + avoided by using $$. Encrypted passwords can be generated + using the ``openssl`` command, e.g: *openssl passwd -1 + -stdin <<< YOUR_PASSWORD | sed 's/\$/\$$/g'*. .. note::