Haiqing Bai 0a659661ff pkgbuilder: Clone chroot even if required instance is 1
This commit fixed the issue that it does not clone the
chroot if the required chroot instances less than 2,
actually it should also clone the parent chroot to the
working chroot with suffix 1, otherwise it can not find
the working chroot and fails to build package with serial
mode which requires only one chroot instance.

Test Plan:
Pass: build-pkgs -c --parallel 1 -p <package name>

Story: 2008846
Task: 46077

Signed-off-by: Haiqing Bai <haiqing.bai@windriver.com>
Change-Id: Iec4dc1bc8b8e6bcf658a12b6bb3844a8a2f488b7
2022-08-23 10:30:56 +08:00
..
2022-04-20 15:07:26 -04:00