After upgrade subcloud linux prompt is different
The regex in prompt.sh is incorrectly adding [] to around user@hostname. This commit removes those brackets in order to have the expected format. Test Plan: PASS: Enter "sudo su -" and verify if the prompt shows "root@controller-0:~$". PASS: Generate a new .iso with the changes and verify if when entering sudo with "sudo su -" it is showing "root@controller-0:~$". PASS: Install system and verify if prompt show "sysadmin@controller-0:~$ " Closes-Bug: 1997972 Related-Bug: 1995988 Signed-off-by: Karla Felix <karla.karolinenogueirafelix@windriver.com> Change-Id: Idfd3b03f2ce1eb9679e227c9406aaf200514977a
This commit is contained in:
parent
5f6ea6c0c9
commit
b2f15301ee
@ -1,4 +1,4 @@
|
||||
if [ "$PS1" ]; then
|
||||
PS1='[\u@\h]\$ '
|
||||
PS1='\u@\h:\w\$ '
|
||||
fi
|
||||
export PS1
|
||||
|
Loading…
x
Reference in New Issue
Block a user