New issue
Advanced search Search tips

Issue 621664 link

Starred by 4 users

Issue metadata

Status: Verified
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

running chromeos-install from USB test image does not populate local disk stateful partition with test image data

Project Member Reported by gurcheta...@chromium.org, Jun 20 2016

Issue description

OS: ChromeOS-test-R53-8477.0.0-cyan-cheets.tar.xz

(1)  Download the above tar ball from the Goldeneye developer channel:

https://pantheon.corp.google.com/storage/browser/chromeos-releases/dev-channel/cyan-cheets/8477.0.0/

(2)  Unpack the tar ball and flash a usb with it:

cros flash usb:// chromiumos_test_image.bin

(3)  Boot a device with the image (crtl + u on the boot screen)
(4)  Verify the rsync command is available
(5)  Run 

sudo bash -x chromeos-install /usr/sbin/chromeos-install

(this just for more output, usually you run /usr/sbin/chromeos-install)

6)  Verify you encounter this error:

+ '[' '!' -d /mnt/stateful_partition/var_overlay/db/pkg ']'
++ dirname var_overlay/db/pkg
+ local parent=var_overlay/db
+ mkdir -p /tmp/install-mount-point/var_overlay/db
+ cp -au /mnt/stateful_partition/var_overlay/db/pkg /tmp/install-mount-point/var_overlay/db/pkg
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/touch_updater-0.0.1-r53': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/genius-app-oem-1.1.3-r1': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/chromeos-activate-date-0.0.1-r5': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/chromeos-bsp-baseboard-strago-0.0.1-r1': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/chromeos-bsp-chipset-bsw-private-0.0.1-r4': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/google-breakpad-2016.05.16.163059-r101': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/workarounds-0.0.1-r81': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/bootstat-0.0.2-r1603': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/system_api-0.0.1-r1991': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/libcontainer-0.0.1-r48': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/tty-0.0.1-r7': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/autotest-0.0.2-r7340': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/chromeos-machine-id-regen-0.0.1': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/quipper-0.0.1-r1149': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/chromeos-cheets-scripts-0.0.1-r151': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/easy-unlock-0.0.1-r1472': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/chromeos-cheets-0.0.1-r3': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/power_manager-0.0.2-r1419': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/cryptohome-0.0.1-r1242': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/shill-0.0.3-r51': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/bootcomplete-login-0.0.1-r3': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/chromeos-firewall-init-0.0.1-r4': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/chromeos-trim-0.0.1-r150': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/wireless_automation-0.0.1-r7': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/gmerge-0.0.1-r963': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/modem-diagnostics-0.1-r9': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/chromeos-factory-mini-0.0.1-r807': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/audiotest-0.0.1-r17': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/recover-duts-0.0.1-r249': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/touchbot-1.0-r126': No such file or directory
cp: cannot stat '/mnt/stateful_partition/var_overlay/db/pkg/chromeos-base/chromeos-factory-deps-1-r19': No such file or directory
+ cleanup_on_failure
+ set +e
+ '[' -b /dev/mmcblk0 ']'
+ echo 'Running a hw diagnostics test -- this might take a couple minutes.'
Running a hw diagnostics test -- this might take a couple minutes.
+ badblocks -sv /dev/mmcblk0
+ tee /tmp/hardware_diagnostics.log
Checking blocks 0 to 15392767
Checking for bad blocks (read-only test): done                                                 
Pass completed, 0 bad blocks found. (0/0/0 errors)
+ which smartctl
+ smartctl -l error /dev/mmcblk0
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.18.0-12453-g22f7042] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

/dev/mmcblk0: Unable to detect device type
Smartctl: please specify device type with the -d option.

Use smartctl -h to get a usage summary

+ smartctl -l selftest /dev/mmcblk0
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.18.0-12453-g22f7042] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

/dev/mmcblk0: Unable to detect device type
Smartctl: please specify device type with the -d option.

Use smartctl -h to get a usage summary

+ smartctl -a /dev/mmcblk0
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.18.0-12453-g22f7042] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

/dev/mmcblk0: Unable to detect device type
Smartctl: please specify device type with the -d option.

Use smartctl -h to get a usage summary

+ cleanup
+ set +e
+ local mount_point
+ for mount_point in '${MOUNTS:-}'
+ umount /tmp/install-mount-point
+ MOUNTS=
+ local loop_dev
+ for loop_dev in '${LOOPS:-}'
+ losetup -d /dev/loop1
+ LOOPS=
+ '[' '!' -z '' ']'

Usually the installation command ends with a success message.

6)  Take out the USB and verify a image does boot, but the rsync command is unavailable.

 
Components: OS>Packages OS>Systems
Labels: -Pri-3 Pri-2
Cc: vapier@chromium.org gwendal@chromium.org

Comment 4 by vapier@chromium.org, Aug 17 2016

Summary: running chromeos-install from USB test image does not populate local disk stateful partition with test image data (was: CrOS incorrect installation leads to missing rsync)
if you pass --preserve_stateful, does it work better ?
I just tried:

sudo bash -x chromeos-install /usr/sbin/chromeos-install --preserve_stateful

with the 8717.0.0 Cyan test image.  The same problem occurs again.
#0 looks like a filesystem error. Any errors in dmesg?
Status: Verified (was: Untriaged)
Must've gotten fixed somewhere along the line.

Sign in to add a comment