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).
BUG=None
TEST=Try with and without the "--nosyslinux" flag.
Change-Id: I7da96595233459c4c1315248db572252cb7891ee
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1644051
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
1 file changed