"cros flash outside chroot" failed if chroot.img is not mounted |
|||
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
,
Sep 26
,
Sep 26
,
Oct 8
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.
,
Oct 8
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 |
|||
Comment 1 by pprabhu@chromium.org
, Sep 25