Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce image size for lazy installation packages (#10775)
Why I did it The image size is too large, when there are multiple lazy packages and multiple platforms. It is not necessary to keep the lazy installation packages in multiple copies. For cisco image, the image size will reduce from 3.5G to 1.7G. How I did it Use symbol links to only keep one package for each of the lazy package. Make a new folder fsroot/platform/common Copy the lazy packages into the folder. When using a package in each of the platform, such as x86_64-grub, x86_64-8800_rp-r0, x86_64-8201_on-r0, etc, only make a symbol link to the package in the common folder.
- Loading branch information
15cf9b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if it is an issue with the builder container or something else, but it is not honoring the
--symlinks
directive.15cf9b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seem to cause that "dpkg-deb: error: '/host/image-HEAD.0-951d93e36/platform/x86_64-quanta_ix8c_bwde-r0/sonic-platform-quanta-ix8c-56x_1.0_amd64.deb' is not a Debian format archive" when do "dpkg -i /host/image-HEAD.0-951d93e36/platform/x86_64-quanta_ix8c_bwde-r0/sonic-platform-quanta-ix8c-56x_1.0_amd64.deb". Can anyone have any advice?
15cf9b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#10887 Other platform meet the same issue. We will follow it.