Build Debian ISO with /upgrades dir and meta files
Build Debian ISO with /upgrades directory and meta files. The meta files are defined in: Test Cases: Build Debian ISO and visually inspect meta files mentioned in depends-on are built in /upgrades Build Centos ISO without any changes. Depends-on: https://review.opendev.org/c/starlingx/metal/+/850549 Story: 2009303 Task: 45833 Change-Id: Ifd97d41ded63106de2f851be2c4cdffe7533cfc0 Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
parent
f27af2988b
commit
8b69ae9474
|
@ -330,6 +330,15 @@ iso-post-script: |
|
|||
cp ${IMAGE_ROOTFS}/var/pxeboot/pxelinux.cfg.files/efi-pxe-* pxeboot/pxelinux.cfg.files/
|
||||
cp ${IMAGE_ROOTFS}/var/pxeboot/pxelinux.cfg.files/pxe-* pxeboot/pxelinux.cfg.files/
|
||||
|
||||
# 2.6 upgrades directory and upgrade meta files
|
||||
RELEASE_VER=$(cat ${IMAGE_ROOTFS}/etc/build.info | grep SW_VERSION | cut -f2 -d'=' | tr -d '"')
|
||||
mkdir -p upgrades
|
||||
cp ${IMAGE_ROOTFS}/usr/sbin/pxeboot-update-${RELEASE_VER}.sh upgrades/
|
||||
cp ${IMAGE_ROOTFS}/opt/upgrades/import.sh upgrades/
|
||||
cp ${IMAGE_ROOTFS}/opt/upgrades/metadata.xml upgrades/
|
||||
sed -i "s/xxxSW_VERSIONxxx/${RELEASE_VER}/g" upgrades/metadata.xml
|
||||
echo -n "VERSION=${RELEASE_VER}" > upgrades/version
|
||||
|
||||
# 3. ISO
|
||||
# 3.1 Edit grub.cfg and isolinux.cfg
|
||||
# 3.1.1 Configure local kickstart url
|
||||
|
|
|
@ -676,6 +676,9 @@ python3-patch-alarm
|
|||
#pf-bb-config
|
||||
pf-bb-config
|
||||
|
||||
#platform-upgrades
|
||||
platform-upgrades
|
||||
|
||||
#platform-util
|
||||
platform-util-controller
|
||||
platform-util-noncontroller
|
||||
|
|
Loading…
Reference in New Issue