Skip to content

Instantly share code, notes, and snippets.

@c4milo
Created October 2, 2014 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c4milo/12525b289dd60a335a79 to your computer and use it in GitHub Desktop.
Save c4milo/12525b289dd60a335a79 to your computer and use it in GitHub Desktop.
install_oem_package() {
local oem_pkg=$(_get_vm_opt OEM_PACKAGE)
local oem_use=$(_get_vm_opt OEM_USE)
#local oem_tmp="${VM_TMP_DIR}/oem"
if [[ -z "${oem_pkg}" ]]; then
return 0
fi
info "Installing ${oem_pkg} to OEM partition"
USE="${oem_use}" emerge-${BOARD} --root="${VM_TMP_ROOT}" \
--root-deps=rdeps --usepkg --quiet "${oem_pkg}"
#sudo rsync -a --ignore-existing --exclude='var/db/pkg' "${oem_tmp}/" "${VM_TMP_ROOT}/"
#sudo rm -rf "${oem_tmp}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment