chroot hooks: added 186_bash_update
Bash upgrades may change the behavior in various fun ways,
and our scripts may not always work with both latest and previous bash
versions.
Adding this hook to keep everyone's bash updated to the latest version.
BUG=None
TEST=run_chroot_version_hooks
Change-Id: Ib78dadc2f63acccdee3b5440c45c8f9ad0fe41d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/2787674
Auto-Submit: Sergey Frolov <sfrolov@google.com>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Sergey Frolov <sfrolov@google.com>
Tested-by: Sergey Frolov <sfrolov@google.com>
Commit-Queue: Sergey Frolov <sfrolov@google.com>
diff --git a/chroot_version_hooks.d/186_bash_upgrade b/chroot_version_hooks.d/186_bash_upgrade
new file mode 100644
index 0000000..231d956
--- /dev/null
+++ b/chroot_version_hooks.d/186_bash_upgrade
@@ -0,0 +1,8 @@
+# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Upgrade bash to the latest version we support.
+# Bash updates change behavior, and build scripts are made to support the
+# latest bash version, and may not work with older versions.
+sudo emerge -ugq app-shells/bash