Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Issue 3421040: Add a utility to tag/stamp image (deprecated) (Closed)

Created:
10 years, 2 months ago by Hung-Te
Modified:
9 years, 7 months ago
Reviewers:
Nick Sanders, gauravsh
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

THIS CL IS DEPRECATED BY http://codereview.chromium.org/3604001. Add a utility to tag/stamp image There are several procedures in Chrome OS post-processing before being released: stamping, tagging, mod image for URLs, ... and signing. Signing already has its own script, and we may need an integrated script to handle all the stamping / tagging. This CL can handle empty tag files like /root/.force_update_firmware or /root/.dev_mode. BUG=none TEST=manually: (1) Build a general dev image without firmware updates (default behavior of build_image for x86-generic ToT) (2) bin/cros_tag_image.sh --from ../../build/images/x86-generic/latest/chromiumos_image.bin Expected: output message: Update Firmware: disabled Developer Mode: Enabled (3) bin/cros_tag_image.sh --enable_update_firmware --disable_dev_mode \ --from ../../build/images/x86-generic/latest/chromiumos_image.bin Expected: output message: Update Firmware: disabled => Enabled Developer Mode: Enabled => disabled Manually verify: pushd ../../build/images/x86-generic/latest unpack_partitions.sh chromiumos_image.bin sudo mount -o loop,ro part_3 rootfs ls -l rootfs/root/.force_update_firmware # this file should exist ls -l rootfs/root/.dev_mode # this file should NOT exist (i.e., error) sudo umount rootfs (4) bin/cros_tag_image.sh --disable_update_firmware --enable_dev_mode \ --from ../../build/images/x86-generic/latest/chromiumos_image.bin Expected: output message: Update Firmware: Enabled => disabled Developer Mode: disabled => Enabled Manually verify: pushd ../../build/images/x86-generic/latest unpack_partitions.sh chromiumos_image.bin sudo mount -o loop,ro part_3 rootfs ls -l rootfs/root/.force_update_firmware # this file should NOT exist (i.e., error) ls -l rootfs/root/.dev_mode # this file should exist sudo umount rootfs Change-Id: I0fbce26d9e308d05ee31dbc4c10356c3c9f77c67

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -0 lines) Patch
A bin/cros_tag_image.sh View 1 chunk +118 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Hung-Te
10 years, 2 months ago (2010-09-28 12:15:35 UTC) #1
gauravsh
Can you move this to vboot_reference/image_signing/scripts/ Most of the post-processing scripts that we are currently ...
10 years, 2 months ago (2010-09-29 03:40:13 UTC) #2
Hung-Te
I was also wondering if this script should be in vboot_reference at first. There are ...
10 years, 2 months ago (2010-09-29 07:16:11 UTC) #3
gauravsh
On 2010/09/29 07:16:11, Hung-Te wrote: > I was also wondering if this script should be ...
10 years, 2 months ago (2010-09-30 02:54:15 UTC) #4
Hung-Te
I think these scripts are useful to both Google's release process and people who just ...
10 years, 2 months ago (2010-09-30 03:20:34 UTC) #5
gauravsh
On Wed, Sep 29, 2010 at 8:20 PM, <hungte@chromium.org> wrote: > I think these scripts ...
10 years, 2 months ago (2010-09-30 03:34:24 UTC) #6
Hung-Te
10 years, 2 months ago (2010-09-30 04:04:55 UTC) #7
ok, the new one is in http://codereview.chromium.org/3604001
and I also added shflags library there.

Powered by Google App Engine
This is Rietveld 408576698