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*
|