mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
Issue 5183: reduce dev install shim size
Change-Id: I7722848872b1712b26c38ac8f163d450c5a08f6d BUG=chromium-os:5183 TEST=manually built a dev install shim and verified it's bootable on agz device Review URL: http://codereview.chromium.org/3158021
This commit is contained in:
parent
537caa90c0
commit
7b6d5036f5
13
build_image
13
build_image
@ -655,13 +655,20 @@ if [[ $FLAGS_preserve -eq ${FLAGS_TRUE} ]] ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Minimize rootfs size for dev install shim and factory installer
|
||||
if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} -o \
|
||||
${FLAGS_dev_install} -eq ${FLAGS_TRUE} ] ; then
|
||||
# Minimize rootfs size for factory installer
|
||||
if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ]; then
|
||||
info "Fixing the rootfs size at 300 MiB for the factory installer"
|
||||
FLAGS_rootfs_size=300
|
||||
fi
|
||||
|
||||
# Minimize rootfs size and statefulfs size for dev install shim
|
||||
if [ ${FLAGS_dev_install} -eq ${FLAGS_TRUE} ] ; then
|
||||
info "Fixing the rootfs size at 300 MiB for dev install shim"
|
||||
FLAGS_rootfs_size=300
|
||||
info "Fixing the statefulfs size at 140 MiB for dev install shim"
|
||||
FLAGS_statefulfs_size=140
|
||||
fi
|
||||
|
||||
# Create the boot.desc file which stores the build-time configuration
|
||||
# information needed for making the image bootable after creation with
|
||||
# cros_make_image_bootable.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user