mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
Add a new script to change the update channel for test images.
It was not marked executable, and was also broken. Now updates the CHROMEOS_RELEASE_TRACK to be testimage-channel for test images. BUG=chromium-os:20019 TEST=Manual Change-Id: I8741f0e21831fe3d9184ca11b73dcea96a1b01b1 Reviewed-on: http://gerrit.chromium.org/gerrit/9801 Reviewed-by: Richard Barnette <jrbarnette@chromium.org> Commit-Ready: Don Garrett <dgarrett@chromium.org> Tested-by: Don Garrett <dgarrett@chromium.org> Reviewed-by: Don Garrett <dgarrett@chromium.org>
This commit is contained in:
parent
470be99f4f
commit
d1c012e718
12
mod_for_test_scripts/002changeUpdateChannel
Executable file
12
mod_for_test_scripts/002changeUpdateChannel
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2011 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.
|
||||
#
|
||||
# Changes the channel of the image for test builds so that it will be
|
||||
# identified as a test image to Omaha which will not give any updates.
|
||||
|
||||
echo "Modifying Release Track for Test (testimage-channel)."
|
||||
FILE="${ROOT_FS_DIR}/etc/lsb-release"
|
||||
sed -i 's/^\(CHROMEOS_RELEASE_TRACK=\).*/\1testimage-channel/' $FILE
|
Loading…
x
Reference in New Issue
Block a user