use install paramter in postinstall script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear List,

we read the paramters of the boot prompt like this.

###
%pre --interpreter /usr/bin/python
.
.
rdLine = (open("/proc/cmdline", "r").read())
offNUS = (rdLine.find('nus') == -1) and (rdLine.find('nlis') == -1)
onRaid = rdLine.find('hwraid') == -1
onInst = rdLine.find('install') != -1
.
.
###

Please can you tell me how I can use this variables in the %post
section, maybe I have missed some documentation in the internet.

Thank you

Aleks

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux