Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ug: lmp-customization: add instruction to escape passwd with printf #657

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion source/user-guide/lmp-customization/lmp-customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,14 @@ Adding LmP Users

\$6\$OJHEGl4Dk5nEwG6k\$z19R1jc7cCfcQigX78cUH1Qzf2HINfB6dn6WgKmMLWgg967AV3s3tuuJE7uhLmBK.bHDpl8H5Ab/B3kNvGE1E.

This is the ``USER_PASSWD``/``LMP_PASSWORD`` to be added to the build as the new user password.
#. You can also escape any special characters by using the ``printf`` command in bash:

.. code-block:: none

password_hash=`mkpasswd -m sha512crypt`
printf '%q' "$password_hash"

This is the ``USER_PASSWD``/``LMP_PASSWORD`` to be added to the build as the new user password.

#. If including a new user, add the following block to ``meta-subscriber-overrides/recipes-samples/images/lmp-factory-image.bb``:

Expand Down
Loading