Comment 2 for bug 1995988

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config-files (master)

Reviewed: https://review.opendev.org/c/starlingx/config-files/+/864059
Committed: https://opendev.org/starlingx/config-files/commit/77c3958fcca414b5c7be386dcb25c13f4f784061
Submitter: "Zuul (22348)"
Branch: master

commit 77c3958fcca414b5c7be386dcb25c13f4f784061
Author: Karla Felix <email address hidden>
Date: Tue Nov 8 16:47:50 2022 -0300

    Changing login prompt to show root as user

    Switch to root user, wasn't adding "root@" to the prompt in
    case of "sudo su -", for "sudo su" it uses the configuration
    described in /etc/bash.bashrc, but for "sudo su -" it is
    replaced by the $SP1 described in /etc/profile.d/prompt.sh.
    To fix it was necessary to change the regex inside
    /etc/profile.d/prompt.sh to show the user before @.

    Test Plan:

    PASS: Generate new image and check with the changes were
          applied and working.

    Closes-Bug: 1995988
    Signed-off-by: Karla Felix <email address hidden>

    Change-Id: I0160c01ad2ffa99203abf11ca61e7d34faf740dd