New issue
Advanced search Search tips

Issue 827363 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Feature

Blocking:
issue 812039



Sign in to add a comment

[Demo mode] Image preparation

Project Member Reported by agawronska@chromium.org, Mar 29 2018

Issue description

rite the scripts necessary to load our preinstalled apps onto the stateful partition. This will involve packaging our apps in a way that they can be verified by our loading mechanism at runtime.

 
Labels: -Pri-3 M-68 Pri-1
Owner: tbarzic@chromium.org
Status: Assigned (was: Untriaged)
Project Member

Comment 2 by bugdroid1@chromium.org, May 11 2018

The following revision refers to this bug:
  https://chrome-internal.googlesource.com/chromeos/chromeos-assets/+/0890eff3a849d3586123cfc9007a6b109059a182

commit 0890eff3a849d3586123cfc9007a6b109059a182
Author: Toni Barzic <tbarzic@chromium.org>
Date: Fri May 11 22:26:08 2018

Labels: -M-68 M-69
Project Member

Comment 4 by bugdroid1@chromium.org, May 19 2018

The following revision refers to this bug:
  https://chrome-internal.googlesource.com/chromeos/chromeos-assets/+/1cc5b274b62cd6219a80b0e1722a6a4ed6bcaa9c

commit 1cc5b274b62cd6219a80b0e1722a6a4ed6bcaa9c
Author: Toni Barzic <tbarzic@chromium.org>
Date: Sat May 19 00:19:58 2018

Project Member

Comment 5 by bugdroid1@chromium.org, May 19 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/crosutils/+/db3538ee13ef2785f186330b650be624f02e83e5

commit db3538ee13ef2785f186330b650be624f02e83e5
Author: Toni Barzic <tbarzic@chromium.org>
Date: Sat May 19 23:16:20 2018

Extract imageloader generation from package_to_container

Moves logic for creating imageloader supported image (squashfs image,
imageloader manifest and the manifest signature) from
package_to_container to a separate script in build_library
(imageloader_util.sh).
Intention is to make this code reusable, initially for generating
imageloader supported image for offline demo resources, but other
use cases might come up in the future.

Note that offline demo mode resources are resources that will be added
to demo-mode enabled Chrome OS image's stateful partition, and they
will contain assets needed to run demo sessions offline. To enforce
assets validation, they will be provided in format supported by image
loader service.

BUG=chromium:827363
TEST=no errors running package_to_container

Change-Id: I8637cd49e0939e96f0401fe618637a7f2a7145d0
Reviewed-on: https://chromium-review.googlesource.com/1062595
Commit-Ready: Toni Barzic <tbarzic@chromium.org>
Tested-by: Toni Barzic <tbarzic@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/db3538ee13ef2785f186330b650be624f02e83e5/package_to_container
[add] https://crrev.com/db3538ee13ef2785f186330b650be624f02e83e5/build_library/imageloader_util.sh

Project Member

Comment 6 by bugdroid1@chromium.org, May 30 2018

Project Member

Comment 7 by bugdroid1@chromium.org, Jun 2 2018

Blocking: 812039
Labels: -Type-Bug OS-Chrome Type-Feature
Project Member

Comment 9 by bugdroid1@chromium.org, Jun 23 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/crosutils/+/5e58feaa585e270327e99ed837df80b856869747

commit 5e58feaa585e270327e99ed837df80b856869747
Author: Toni Barzic <tbarzic@chromium.org>
Date: Sat Jun 23 00:22:22 2018

Generate demo mode resources during image build

Updates build_image to create imageloader supported image from test demo
mode resourced directory created under local rootfs build directory
(which are finalized during base image finalization), and install them
to the test image.
Also, generates standalone demo mode resources artifact (that is
intended to eventually be added to appropriate images' stateful
partitions during factory flow).

BUG=chromium:827363
TEST=build image

Change-Id: Ie05e71e966b755926a80a2405d3a3ca736a024de
Reviewed-on: https://chromium-review.googlesource.com/1069997
Commit-Ready: Toni Barzic <tbarzic@chromium.org>
Tested-by: Toni Barzic <tbarzic@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>

[modify] https://crrev.com/5e58feaa585e270327e99ed837df80b856869747/build_library/imageloader_util.sh
[modify] https://crrev.com/5e58feaa585e270327e99ed837df80b856869747/build_library/base_image_util.sh
[modify] https://crrev.com/5e58feaa585e270327e99ed837df80b856869747/build_image
[add] https://crrev.com/5e58feaa585e270327e99ed837df80b856869747/mod_for_test_scripts/250enableForDemoMode

Project Member

Comment 10 by bugdroid1@chromium.org, Jun 28 2018

Project Member

Comment 11 by bugdroid1@chromium.org, Jun 28 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/98583045226553cd26087c86106c630936fa32c3

commit 98583045226553cd26087c86106c630936fa32c3
Author: Toni Barzic <tbarzic@chromium.org>
Date: Thu Jun 28 05:07:36 2018

installer: Handle demo mode resources in chromeos-install

Copy demo mode resources to the target stateful partition if the
source stateful partition contains them.

BUG=chromium:827363
TEST=None

Change-Id: Ia5344dd9d958bf077f2d28cd01e36cacfcbf5233
Reviewed-on: https://chromium-review.googlesource.com/1112955
Commit-Ready: Toni Barzic <tbarzic@chromium.org>
Tested-by: Toni Barzic <tbarzic@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>

[modify] https://crrev.com/98583045226553cd26087c86106c630936fa32c3/installer/chromeos-install

Project Member

Comment 12 by bugdroid1@chromium.org, Sep 5

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/crosutils/+/af008bf8bd35af83b3436d0e8c4734f134cecfd2

commit af008bf8bd35af83b3436d0e8c4734f134cecfd2
Author: Michael Giuffrida <michaelpg@chromium.org>
Date: Wed Sep 05 08:25:57 2018

Fix imageloader_util manifest generation

generate_imageloader_manifest shouldn't cd into the output directory
because file locations are already relative to the output directory.

BUG=chromium:827363
TEST=generate an imageloader image and verify the manifest contains
     valid sha256 hashes for image.squash and table

Change-Id: I8fd807d1cf81456c2c8aa1ee076c3714d6485e90
Reviewed-on: https://chromium-review.googlesource.com/1198387
Commit-Ready: Michael Giuffrida <michaelpg@chromium.org>
Tested-by: Michael Giuffrida <michaelpg@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/af008bf8bd35af83b3436d0e8c4734f134cecfd2/build_library/imageloader_util.sh

Owner: michae...@chromium.org

Sign in to add a comment