New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 888936 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

"cros flash outside chroot" failed if chroot.img is not mounted

Project Member Reported by kcwu@chromium.org, Sep 25

Issue description

"cros flash" expects chroot/ is a chroot directory. In the case of "chroot.img", it expects chroot is mounted. If not, "cros flash" will fail with error message:
16:31:34: ERROR: Device update failed.
16:31:34: ERROR: cros flash failed before completing.
16:31:34: ERROR: [Errno 2] No such file or directory: '/home/kcwu/chromiumos/chroot/tmp/devserver_wrappersDQ5Cr'
16:31:34: ERROR: (Re-run with --debug for more details.)


How to reproduce this issue:
 1. has chromeos chroot using chroot.img
 2. unmount chroot if it is mounted
 3. run cros flash directly without entering chroot

 
Components: -Infra>Client>ChromeOS Infra>Client>ChromeOS>Build
Cc: bmgordon@chromium.org
Description: Show this description
I poked around at this a bit.  It doesn't seem hard to add a cros_sdk_lib.MountChroot call inside cros_flash.py, but is that something we should add for all the cros commands?  I would expect that cros flash isn't the only one that expects a chroot to be mounted.
we should def not add it for all cros commands.  only ones that require/expect the chroot to be mounted.

Sign in to add a comment