Loc moved to prev consolidation change (#12427)
Why I did it Issue was caused by this #11341 *.bin image structure in 202205: vkarri@19d5638dde2d:/sonic$ ls -l /tmp/tmp.9ibWSipeRw/installer/x86_64/ total 12 drwxr-xr-x 2 vkarri dip 12288 Oct 14 13:16 platforms However install.sh which runs on ONiE parition expects the platform specific kernel cmd line conf file under platform/$onie_platform_string file https://github.com/sonic-net/sonic-buildimage/blob/master/installer/install.sh#L102 Thus, any platform which defines and depends on these params might be broken on master label. How I did it Since we are already filtering the conf files based on TARGET_PLATFORM in build_image.sh, i've just updated the location to installer/platforms instead of installer/$arch/platforms Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
This commit is contained in:
parent
198b629884
commit
3058fb62e6
@ -71,12 +71,12 @@ generate_onie_installer_image()
|
||||
output_file=$OUTPUT_ONIE_IMAGE
|
||||
[ -n "$1" ] && output_file=$1
|
||||
# Copy platform-specific ONIE installer config files where onie-mk-demo.sh expects them
|
||||
rm -rf ./installer/${TARGET_PLATFORM}/platforms/
|
||||
mkdir -p ./installer/${TARGET_PLATFORM}/platforms/
|
||||
rm -rf ./installer/platforms/
|
||||
mkdir -p ./installer/platforms/
|
||||
for VENDOR in `ls ./device`; do
|
||||
for PLATFORM in `ls ./device/$VENDOR | grep ^${TARGET_PLATFORM}`; do
|
||||
if [ -f ./device/$VENDOR/$PLATFORM/installer.conf ]; then
|
||||
cp ./device/$VENDOR/$PLATFORM/installer.conf ./installer/${TARGET_PLATFORM}/platforms/$PLATFORM
|
||||
cp ./device/$VENDOR/$PLATFORM/installer.conf ./installer/platforms/$PLATFORM
|
||||
fi
|
||||
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user