b1a8634358
Why I did it fixes #15949 Problem 1: Setting ONIE_IMAGE_PART_SIZE using env variable or using "make ONIE_IMAGE_PART_SIZE=65536 USERNAME=test PASSWORD=test all" did not work. Problem 2: The platform specific file for example "device/x86_64-8201_32fh_o-r0/installer.conf" cannot override it by setting value of ONIE_IMAGE_PART_SIZE in the file. change 2 adds support to do that. How I did it Change 1: when ONIE_IMAGE_PART_SIZE, the files Makefile.work and slave.mk should pass that setting along all the way to build_image.sh. Please see commit 1. Change 2: In installer/install.sh, save the value set during build time string replace into a value and then let this value be overridden later when installer.conf get read which is platform specific. If platform does not override it, the original value will continue to work. Please see commit 2. How to verify it 1: The below command works now make ONIE_IMAGE_PART_SIZE=65536 USERNAME=test PASSWORD=test all" The image properly was installed using ONIE and the partition size reflects what was passed in the above build command. If the above value is not set, the default from "onie-image.conf" takes effect and still works. 2: Set ONIE_IMAGE_PART_SIZE in platform specific file like below example --------------Diff---- device/x86_64-8201_32fh_o-r0/installer.conf @@ -1 +1,2 @@ ONIE_PLATFORM_EXTRA_CMDLINE_LINUX=" intel_iommu=off" +ONIE_IMAGE_PART_SIZE=128000 and built the image using "make USERNAME=test PASSWORD=test all" and verified that the final installation properly partitioned the disk to the requested value from installer.conf file. |
||
---|---|---|
.. | ||
tests | ||
default_platform.conf | ||
install.sh | ||
sharch_body.sh |