commit | 9fb6e981a76e46fb09dcc1c7bbb54ea3cb434550 | [log] [tgz] |
---|---|---|
author | Alistair Strachan <astrachan@google.com> | Tue Jun 12 16:00:38 2018 -0700 |
committer | Greg Hartman <ghartman@google.com> | Tue Jun 12 20:55:28 2018 -0700 |
tree | 32189dc2670fe2d0db62b88376c1edf166e48fae | |
parent | b109e501016fec3008c7dce1673156555be7b2a9 [diff] |
Handle system-as-root build kinds. When building system-as-root, there may be no ramdisk, or a ramdisk that is created by the 'dist' phase and not injected into the boot.img file. If the ramdisk.img file is not present or is zero bytes in size, consider this to be a system-as-root build and switch from passing QEMU the initrd parameter to specifying "root= init=" on the kernel command line. Bug: 110097226 Change-Id: I380505a132aa32bd99475993ace996e3d56552aa