After removing mini-omaha related scripts, I think we're close to be ready for making setup/ more simplified.
Currently we have:
- edit_lsb_factory
- extract_firmware_updater
- make_factory_package (for --diskimg and --usbimg)
- merge_factory_usbimg
- mount_partition
- netboot_firmware_settings
- resize_image_fs
I think we should merge that to a single program like 'cros_sdk', for example "py/tools/imgtool.py" so that:
imgtool lsb_factory => edit the /etc/lsb_factory file
imgtool get_fw_updater => extract_firmware_updater
imgtool disk => make_factory_package --diskimg
imgtool usb => make_factory_package --usbimg
imgtool merge_usb => merge_factory_usbimg
imgtool mount => mount_partition
imgtool netboot_firmware => netboot_firmware_settings
imgtool resize_fs => resize_image_fs
And eventually, Dome may call imgtool to manipulate images, for example creating RMA shim or pre-flash SSD images.
Comment 1 by benhenry@chromium.org
, Aug 1