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
2 files changed
tree: 32189dc2670fe2d0db62b88376c1edf166e48fae
  1. common/
  2. guest/
  3. host/
  4. tests/
  5. tools/
  6. Android.bp
  7. Android.mk
  8. OWNERS