LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 07-19-2005, 06:41 AM   #1
yuri65
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
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*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading Kernel in RHAS 2.4.9 vanibhat Linux - Security 4 03-03-2005 02:26 PM
Using parted in the pre section of my kickstart install davidr Linux - Software 0 12-09-2004 06:53 PM
Oracle 9i on RHAS v. 3.0 PAarcher Linux - Enterprise 4 11-30-2004 01:42 PM
RHAS 2.1 hangs at random wongksp Red Hat 3 10-13-2004 05:40 AM
Kickstart %pre not executing rajatgarg Linux - General 0 01-12-2004 12:16 PM


All times are GMT -5. The time now is 02:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration