While re-installing ustart image, there are some error messages:
- `blockdev --rereadpt ${dev}' always failed due to existed lvm
volume group was not cleanup because of ustart image skip fat
partition format (instsf=1). Then move the cleanup code ahead
for both of skip and not skip situation
- Remove `-t $p:FFFF' from platform_backup partition which is
not recognized by sgdisk
- Add `--yes' to vgcreate and lvcreate to avoid prompt hung
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Change-Id: I865bb95a8a00bbc4144d782d4ccd1a20fcf5eaa7
Test Plan:
- PASS: Download initramfs-ostree source tarball
- PASS: Build package initramfs-ostree
- PASS: Build Ustart image
- PASS: Install Ustart image
- PASS: Boot installed image, multiple partitions mounted to
rootfs
- PASS: Reinstall Ustart image
- PASS: Boot installed image, multiple partitions mounted to
rootfs
Story: 2008846
Task: 44545
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Change-Id: Ia771c7ee2e5dd7fa9d6946877738357e863411f5