[Starlingx-discuss] how to install my own rpm

Bailey, Henry Albert (Al) Al.Bailey at windriver.com
Fri Feb 17 21:05:22 UTC 2023


With StarlingX, the way to add an rpm to the platform is through a patch.
Within the StarlingX patching system it will install the rpm, and will prevent it from being removed by a reboot.

There is a video from the Open Infrastructure Foundation that shows an example of creating your own patch to allow an rpm to be installed.  It uses the patch_build.sh command
https://www.youtube.com/watch?v=vwqhxpgaxXE


For example, if I wanted to add an RPM for pyflame  my patch_build.sh   syntax would look something like this:

# Run this script from within $MY_WORKSPACE
PATH=$MY_REPO/stx/update/extras/scripts:$PATH
PATCH_ID=PYFLAME
DIR=std/rpmbuild/RPMS
PYFLAME=pyflame-1.6.6-4.el7.tis.1.x86_64.rpm

patch_build.sh \
--id ${PATCH_ID} \
--reboot-required=Y \
--summary "New pyflame rpm " \
--desc "Adds a new pyflame rpm "\
--controller ${DIR}/${PYFLAME} \
--controller-worker ${DIR}/${PYFLAME} \
--controller-worker-lowlatency ${DIR}/${PYFLAME}


Be aware that in this example,  I am ‘adding’ an rpm  rather than updating one, so I needed to include special fields
(--controller ,  --controller-worker ,  --controller-worker-lowlatency ) so that the platform knows that the rpm belongs on controller and AIO hosts (and in this example it will not install it on worker or storage nodes)

The video (and my example) assume you have a development environment setup with your variables, etc..  already defined.  If that is not the case, you may need to ensure you have the starlingx/update repo checked out and make the appropriate changes to the commands.

Al

From: LiuYongfu <114769003 at qq.com>
Sent: Saturday, February 11, 2023 5:52 AM
To: starlingx-discuss <starlingx-discuss at lists.starlingx.io>
Subject: [Starlingx-discuss] how to install my own rpm

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Brief Description
-----------------

when I install my private(own) rpm to the compute node. when the node is restarted .my private rpm is deleted.
so I want to know : are there some ways to install my own rpm on compute nodes or is it just a bug?

Steps to Reproduce
------------------
I installed my GPU rpm packages on the compute node,and it worked right.

Expected Behavior
------------------

the rpm packages works correctly all the time.

Actual Behavior
when reboot the compute nodes .my gpu rpm packages are removed by the system.

thanks very much.


[Image removed by sender.]
LiuYongfu
114769003 at qq.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20230217/9ce6ea10/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ~WRD0000.jpg
Type: image/jpeg
Size: 823 bytes
Desc: ~WRD0000.jpg
URL: <https://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20230217/9ce6ea10/attachment-0001.jpg>


More information about the Starlingx-discuss mailing list