LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Kickstart and %pre on RHAS V4.0 (https://www.linuxquestions.org/questions/red-hat-31/kickstart-and-pre-on-rhas-v4-0-a-344592/)

yuri65 07-19-2005 06:41 AM

Kickstart and %pre on RHAS V4.0
 
Hi All

I have a problem with the %pre scripting, after some tests I have write an essential python script for create a file to include. The script seems working fine, but no file has been created.

In the following there is the script

BEGIN --->

# Pre installation steps ********************************************************
%Pre --interpreter /usr/bin/python

import os
import sys

def main():
f = open('/ks_Common/Partitions.inc', 'w')
f.write("Test\n")
f.close()

if __name__ == "__main__":
main()

<--- END

Someone have an idea where is the problem ??
Thanks for your support

/BR

*Yuri65*


All times are GMT -5. The time now is 03:37 AM.