scripts: cros_sdk: freeze options
The main func is quite large, and does a lot of options modifications
as it uses it to track state. Put a freeze call in to help people
keep track of where those modifications stop.
BUG=b:191307774
TEST=CQ passes
Change-Id: Icda1171d201c94fa86113e978e410cc01491d312
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4199757
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/cros_sdk.py b/scripts/cros_sdk.py
index 47c076a..32144d1 100644
--- a/scripts/cros_sdk.py
+++ b/scripts/cros_sdk.py
@@ -1225,6 +1225,8 @@
# Make sure we will download if we plan to create.
options.download |= options.create
+ options.Freeze()
+
# Anything that needs to manipulate the main chroot mount or communicate
# with LVM needs to be done here before we enter the new namespaces.