update_kernel: Only copy stuff in /boot if doing syslinux
In normal Chrome OS flows (other than the syslinux flow), we don't use
"/boot" for booting the system. Normally Chrome OS loads the kernel
from the kernel partition (KERN-A or KERN-B).
Copying stuff in /boot just takes extra time and disk space. Let's
not do it.
After this change, I find myself running out of disk space much less
frequently when running update_kernel (assuming I pass --nosyslinux).
TEST=Try with and without the "--nosyslinux" flag.
Signed-off-by: Douglas Anderson <firstname.lastname@example.org>
Legacy-Commit-Queue: Commit Bot <email@example.com>
Reviewed-by: Brian Norris <firstname.lastname@example.org>
Reviewed-by: Guenter Roeck <email@example.com>
1 file changed