mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
Merge pull request #374 from crawford/docs
build_library: add extract_docs()
This commit is contained in:
commit
103a146c10
@ -154,6 +154,15 @@ write_packages() {
|
||||
fi
|
||||
}
|
||||
|
||||
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"
|
||||
|
||||
@ -47,6 +47,7 @@ create_prod_image() {
|
||||
extract_prod_gcc "${root_fs_dir}"
|
||||
emerge_to_image "${root_fs_dir}" "${base_pkg}"
|
||||
write_packages "${root_fs_dir}" "${BUILD_DIR}/${image_packages}"
|
||||
extract_docs "${root_fs_dir}"
|
||||
|
||||
# Assert that if this is supposed to be an official build that the
|
||||
# official update keys have been used.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user