Add 'vfat' flag when building kernel with initramfs

We are about to separate VFAT support from 'initramfs' flag. Let's add
'vfat' flag first so that when this happens nothing gets broken.

TEST=Build success. Factory install shim still works.

Change-Id: Ia432e3b1a6186f4f7c817a1283c86066ced5fef1
Reviewed-by: Hung-Te Lin <>
Reviewed-by: Olof Johansson <>
Commit-Ready: Vic Yang <>
Tested-by: Vic Yang <>
diff --git a/build_image b/build_image
index 3b67a9e..32fcccc 100755
--- a/build_image
+++ b/build_image
@@ -150,7 +150,7 @@
   # network, so we don't require initramfs, but we do require fbconsole to fix
   # a display driver bug.
   if [ "${ARCH}" = "x86" -o "${ARCH}" = "amd64" ] ; then
-    export USE="${USE} initramfs"
+    export USE="${USE} initramfs vfat"
   # CONFIG_BLK_DEV_RAM is disabled by default.
   # But tftp install needs it to mount rootfs in ram
diff --git a/ b/
index fd6c74c..10df9a9 100755
--- a/
+++ b/
@@ -399,7 +399,7 @@
 # Build the recovery kernel.
-USE="fbconsole initramfs" emerge_custom_kernel "$FACTORY_ROOT" ||
+USE="fbconsole initramfs vfat" emerge_custom_kernel "$FACTORY_ROOT" ||
   failboat "Cannot emerge custom kernel"
 if [ -z "$FLAGS_kernel_image" ]; then