Make update_engine reserve space for decompression via apexd am: b0ab865e4a am: f057877b99 am: a37773e58e
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1614853
Change-Id: I1ae0e4c6c43f4602a7df0bce455de4a81786a1a7
diff --git a/scripts/brillo_update_payload b/scripts/brillo_update_payload
index d1a1781..746cefb 100755
--- a/scripts/brillo_update_payload
+++ b/scripts/brillo_update_payload
@@ -89,12 +89,14 @@
exit 1
}
-# Loads shflags. We first look at the default install location; then look for
-# crosutils (chroot); finally check our own directory.
+# Loads shflags. We first look at the default install location; then our own
+# directory; finally the parent directory.
load_shflags() {
local my_dir="$(dirname "$(readlink -f "$0")")"
local path
- for path in /usr/share/misc "${my_dir}"/lib/shflags; do
+ for path in /usr/share/misc \
+ "${my_dir}"/lib/shflags \
+ "${my_dir}"/../lib/shflags; do
if [[ -r "${path}/shflags" ]]; then
. "${path}/shflags" || die "Could not load ${path}/shflags."
return