Show installed software release in the subcloud

The command software list is not returning the correct software
release on subcloud, it is returning empty list instead.

This commit fix this issue by creating the USM metadata directories
under /opt/software for subclouds too.

Test Plan:
PASS: Software list returning proper data.

Story: 2010676
Task: 49746

Relates-to: e37f69765e
6c863b3828

Change-Id: I55554709f377b725db535bc32d316a9586996693
Signed-off-by: Luis Eduardo Bonatti <LuizEduardo.Bonatti@windriver.com>
This commit is contained in:
Luis Eduardo Bonatti 2024-03-20 11:27:54 -03:00
parent f8d1d96e75
commit dcbeade4d9

View File

@ -2939,9 +2939,9 @@ if [ "${controller}" = true ] ; then
# If the miniboot ISO contains a patches directory
if [ -d "/instboot/patches" ]; then
ilog "Prepatched iso"
ilog "Creating patching metadata directories"
mkdir -p ${IMAGE_ROOTFS}/var/rootdirs/opt/patching/metadata/{committed,available,applied}
cp -a /instboot/patches/* ${IMAGE_ROOTFS}/var/rootdirs/opt/patching/metadata/committed/
ilog "Creating USM metadata directories"
mkdir -p ${IMAGE_ROOTFS}/var/rootdirs/opt/software/metadata/{committed,available,deployed}
cp -a /instboot/patches/* ${IMAGE_ROOTFS}/var/rootdirs/opt/software/metadata/deployed/
fi
# copy efi.img to /var/pxeboot to enable duplex/multinode subclouds