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
Merged-In: I380505a132aa32bd99475993ace996e3d56552aa
(cherry picked from commit 9fb6e981a76e46fb09dcc1c7bbb54ea3cb434550)
2 files changed
tree: 709f5b166e75107deaac8f0085bb3e5348a773c1
  1. common/
  2. guest/
  3. host/
  4. tests/
  5. tools/
  6. Android.bp
  7. Android.mk
  8. OWNERS