debian: Update installer with fs size parameters

LAT is unable to export the fs size parameters to the
installer (VSZ,BSZ,RSZ,FSZ). The LAT installer defaults
the size parameters to values that do not match those
specified in the base-bullseye.yaml file.

Therefore such values need to be specified on the install
command line in every menu of every pxeboot grub file.
Any change in these values would require all the grub
files to be updated. This is not desirable.

So instead, this update patches the installer with the
values currently set in the base-bullseye.yaml file.

Until a way is found to extract the values directly
from base-bullseye.yaml they are hard coded to match
with this update.

A change of them in base-bullseye.yaml will require an
equivalent change like this in base-initramfs-bullseye.yaml

Test Plan:
PASS: Verify build-pkgs and build-image
PASS: Verify PXE install without parms on grub command line.

Regression:
PASS: Verify USB install

Note: CentOS env is not affected by this update.

Co-authored-by: Eric MacDonald <Eric.Macdonald@windriver.com>
Co-authored-by: Hongxu Jia <Hongxu.Jia@windriver.com>

Story: 2009101
Task: 44703
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
Change-Id: I0601732c2ac02169d1bdc462c51ab50fd6d4e5a2
This commit is contained in:
Eric MacDonald 2022-03-11 17:09:27 +00:00
parent c7ed6130b2
commit ec6cf70174

View File

@ -83,6 +83,13 @@ rootfs-post-scripts:
- |-
# Set bash as default shell
ln -snf --relative $IMAGE_ROOTFS/bin/bash $IMAGE_ROOTFS/bin/sh
- |-
# Update the installer script with partition size parameters
# so they don't have to be specified on the grub command line
sed -i "s/^FSZ=.*/FSZ=32/g" ${IMAGE_ROOTFS}/install
sed -i "s/^BSZ=.*/BSZ=512/g" ${IMAGE_ROOTFS}/install
sed -i "s/^RSZ=.*/RSZ=20480/g" ${IMAGE_ROOTFS}/install
sed -i "s/^VSZ=.*/VSZ=20480/g" ${IMAGE_ROOTFS}/install
environments:
- NO_RECOMMENDATIONS="1"
- DEBIAN_FRONTEND=noninteractive