mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
Merge pull request #377 from flatcar-linux/scripts
build_library: Try to clean up unused stuff
This commit is contained in:
commit
29d9c7e871
@ -31,6 +31,7 @@ set_build_symlinks() {
|
||||
cleanup_mounts() {
|
||||
info "Cleaning up mounts"
|
||||
"${BUILD_LIBRARY_DIR}/disk_util" umount "$1" || true
|
||||
rmdir "${1}" || true
|
||||
}
|
||||
|
||||
delete_prompt() {
|
||||
@ -782,5 +783,6 @@ EOF
|
||||
pushd "${BUILD_DIR}" >/dev/null
|
||||
zip --quiet -r -9 "${BUILD_DIR}/${pcr_policy}" pcrs
|
||||
popd >/dev/null
|
||||
rm -rf "${BUILD_DIR}/pcrs"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -513,6 +513,8 @@ install_oem_aci() {
|
||||
"${aci_path}" \
|
||||
"${VM_TMP_ROOT}/usr/share/oem/flatcar-oem-${oem_aci}.aci" ||
|
||||
die "Could not install ${oem_aci} OEM ACI"
|
||||
# Remove aci_dir if building ACI and installing it succeeded
|
||||
rm -rf "${aci_dir}"
|
||||
}
|
||||
|
||||
# Any other tweaks required?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user