Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 07-19-2005, 06:41 AM   #1
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/', 'w')

if __name__ == "__main__":

<--- END

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




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 > Forums > Linux Forums > Linux - Distributions > Red Hat

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

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