build_library: remove extract_docs()

Since coreos-doc was removed from coreos-overlay, there are no more
files in /usr/share/coreos/doc, causing this function to fail.
This commit is contained in:
David Michael 2016-11-09 11:44:11 -08:00
parent 1d651dbf96
commit 2dfab3fd79
3 changed files with 0 additions and 11 deletions

View File

@ -228,15 +228,6 @@ write_licenses() {
done > "$2"
}
extract_docs() {
local root_fs_dir="$1"
info "Extracting docs"
tar --create --auto-compress --file="${BUILD_DIR}/doc.tar.bz2" \
--directory="${root_fs_dir}/usr/share/coreos" doc
sudo rm --recursive --force "${root_fs_dir}/usr/share/coreos/doc"
}
# Add an entry to the image's package.provided
package_provided() {
local p profile="${BUILD_DIR}/configroot/etc/portage/profile"

View File

@ -34,7 +34,6 @@ create_oem_aci_image() {
run_ldconfig "${root_fs_dir}"
write_packages "${root_fs_dir}" "${BUILD_DIR}/${image_packages}"
write_licenses "${root_fs_dir}" "${BUILD_DIR}/${image_licenses}"
extract_docs "${root_fs_dir}" || : # This is allowed to fail.
# clean-ups of things we do not need
sudo rm ${root_fs_dir}/etc/csh.env

View File

@ -79,7 +79,6 @@ create_prod_image() {
run_localedef "${root_fs_dir}"
write_packages "${root_fs_dir}" "${BUILD_DIR}/${image_packages}"
write_licenses "${root_fs_dir}" "${BUILD_DIR}/${image_licenses}"
extract_docs "${root_fs_dir}"
# Assert that if this is supposed to be an official build that the
# official update keys have been used.