Isolated the chroot's persistence places to /localdisk/pkgbuilder
and keep the owner of this directory can resolve the below permission issue:
"Detected unsafe path transition /var/log ->
/var/log/journal during canonicalization of /var/log/journal."
The reason is that the owner of original directory was changed when switch
to 'USER' configured in stx.conf.
This commit also supports to update the URL of local repo after user switch
Story: 2008846
Task: 43635
Signed-off-by: hbai <haiqing.bai@windriver.com>
Change-Id: I7002670688a4a759f88fde9f4ef9f35c79ef7cf6