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>
Reviewed: https:/ /review. opendev. org/c/starlingx /config- files/+ /864059 /opendev. org/starlingx/ config- files/commit/ 77c3958fcca414b 5c7be386dcb25c1 3f4f784061
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 77c3958fcca414b 5c7be386dcb25c1 3f4f784061
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 d/prompt. sh. profile. d/prompt. sh to show the user before @.
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.
To fix it was necessary to change the regex inside
/etc/
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: I0160c01ad2ffa9 9203abf11ca61e7 d34faf740dd