- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- passing parameters to rpms
Operating System - Linux
1822146
Members
4174
Online
109640
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2005 08:02 PM
тАО08-08-2005 08:02 PM
Hey,
I want to create a rpm that creates a Filesystem, and puts the files in that specific filesystem....
I want that the vg name will be passed while installation...
Is it possible to define parameters in a spec file of rpm, and when installing to set the parameter, and the rpm will act according to the value ? (in my case creating a fs on the vg according to the vg parameter).
Thank you,
Oved
I want to create a rpm that creates a Filesystem, and puts the files in that specific filesystem....
I want that the vg name will be passed while installation...
Is it possible to define parameters in a spec file of rpm, and when installing to set the parameter, and the rpm will act according to the value ? (in my case creating a fs on the vg according to the vg parameter).
Thank you,
Oved
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2005 08:27 PM
тАО08-08-2005 08:27 PM
Solution
Short answer: No. You can only pass parameters during the rpm's build phase.
Not-so-short answer: Maybe. If you populate a file somewhere (fixed) on one of the existing filesystems, and have your built RPM use the contents of that existing file, then you should be able to get something done. So long as it's not going to ask any questions that is.
Not-so-short answer: Maybe. If you populate a file somewhere (fixed) on one of the existing filesystems, and have your built RPM use the contents of that existing file, then you should be able to get something done. So long as it's not going to ask any questions that is.
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 04:46 PM
тАО08-09-2005 04:46 PM
Re: passing parameters to rpms
you may be able to do this as per stuart's response.
Other method would be to set an environment variable, check for this environment variable from pre-install script of RPM package install. Based on the value do some pre-install actions (creating vg, vg parameters etc). Then do the actual installation.
Check RPM spec file for pre-install and post-install scripts. There are also options for pre and post uninstall scripts.
Regards,
Gopi
Never Never Never Giveup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2005 01:24 AM
тАО08-24-2005 01:24 AM
Re: passing parameters to rpms
hai
Try to cretae a kick start installation.
after installing in one system take a kick start config file( this option is available in the gui mode)and copy the ks.conf file to a floppy
and in the other system boot with the bootable cd and put the floppy in the fdd
and give
boot: ks=floppy
cheers
Try to cretae a kick start installation.
after installing in one system take a kick start config file( this option is available in the gui mode)and copy the ks.conf file to a floppy
and in the other system boot with the bootable cd and put the floppy in the fdd
and give
boot: ks=floppy
cheers
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP