| # Copyright 2018 The ChromiumOS Authors | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| """Chrome OS Image kernel cmdline dump.""" | |
| from chromite.lib import commandline | |
| from chromite.signing.image_signing import imagefile | |
| def main(argv): | |
| parser = commandline.ArgumentParser(description=__doc__) | |
| parser.add_argument( | |
| "input_image", type="path", help="Path to input image file" | |
| ) | |
| options = parser.parse_args(argv) | |
| options.Freeze() | |
| imagefile.DumpConfig(options.input_image) |