From ec6cf70174e423daf36cc2026105e9f5c100744b Mon Sep 17 00:00:00 2001 From: Eric MacDonald Date: Fri, 11 Mar 2022 17:09:27 +0000 Subject: [PATCH] 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 Co-authored-by: Hongxu Jia Story: 2009101 Task: 44703 Signed-off-by: Eric MacDonald Change-Id: I0601732c2ac02169d1bdc462c51ab50fd6d4e5a2 --- .../config/debian/common/base-initramfs-bullseye.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian-mirror-tools/config/debian/common/base-initramfs-bullseye.yaml b/debian-mirror-tools/config/debian/common/base-initramfs-bullseye.yaml index be55ea9c..90b78657 100644 --- a/debian-mirror-tools/config/debian/common/base-initramfs-bullseye.yaml +++ b/debian-mirror-tools/config/debian/common/base-initramfs-bullseye.yaml @@ -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