[Starlingx-discuss] Re:RE: how to install my own rpm

LiuYongfu 114769003 at qq.com
Wed Mar 8 12:08:20 UTC 2023


Hi,
    thanks very much . so I need to make a pach  and install it .  my first step is to build the starlingx .when I build this.  It has some problems as below:
could you please help me ? thanks very much.







LiuYongfu
114769003 at qq.com







                       
Original
                       
                     

From:"Bailey, Henry Albert (Al)"< Al.Bailey at windriver.com >;

Date:2023/2/18 5:05

To:"LiuYongfu"< 114769003 at qq.com >;"starlingx-discuss"< starlingx-discuss at lists.starlingx.io >;

Subject:RE: [Starlingx-discuss] how to install my own rpm


  
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.
 
  

 
 
 
       

 
    
LiuYongfu
 
  
114769003 at qq.com
 
  
   
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20230308/f2160d77/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4093834 at E3047A3C.B47A086400000000.png
Type: application/octet-stream
Size: 120814 bytes
Desc: not available
URL: <https://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20230308/f2160d77/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: F6672A2D at 00408767.B47A086400000000.jpg
Type: image/jpeg
Size: 823 bytes
Desc: not available
URL: <https://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20230308/f2160d77/attachment-0001.jpg>


More information about the Starlingx-discuss mailing list