fix(vm_image_util): remove /usr/share/oem prefix

remove this prefix from the PARTIIONED=0 builds
This commit is contained in:
Brandon Philips 2013-09-09 18:06:17 -07:00
parent 2605c6ca95
commit 05a4974836

View File

@ -257,7 +257,7 @@ install_oem_package() {
# Install directly to root if this is not a partitioned image
if [[ $(_get_vm_opt PARTITIONED_IMG) -eq 0 ]]; then
emerge_oem_package "${oem_mnt}/usr/share/oem"
emerge_oem_package "${oem_mnt}"
return 0
fi
@ -377,7 +377,7 @@ _write_squashfs_root() {
sudo mount -o loop,ro "${TEMP_ROOTFS}" "${root_mnt}"
# Roll the OEM into the build dir
sudo mount --bind "${oem_mnt}"/usr/share/oem "${root_mnt}"/usr/share/oem
sudo mount --bind "${oem_mnt}" "${root_mnt}"/usr/share/oem
# Build the squashfs
sudo mksquashfs "${root_mnt}" "${cpio_target}"/newroot.squashfs