I have no clue about anything related to Python, but what a cool idea....
So I wrote a python script to run with our Red Hat/Fedora kickstart installs. This runs in the %pre section, which is done before anything else, and then later on in the file, I can %include the files I write out to with this script.
Basically this script will probe for what disk drives are on the system, and then set up partitioning schemes accordingly, with some rules about the size of the first disk, the amount of free space found on other disks, or if there are any Linux partitions on other disks for which to take over. Also it looks at the cmdline (all boot time options show up in /proc/cmdline) for arguments for the package set and whether or not to do an interactive install.
Feel free to point and laugh, but please do offer any criticism you see fit.
http://geek.j2solutions.net/stuff/autokickfc2.py
I have no clue about anything related to Python, but what a cool idea....
I'll take a look at it. I'm no expert Python coder, but I've dabbled in it a bit. When it comes to PHP I'm a bit better. Few more years of experience. ;-)
Seems like a neat idea. Too bad I don't use Fedora.
that script looks pretty good to me
i would seperate the packages from the code and put them in a config file though, but other than that, it looks good
[quote author=Ralinx link=board=9;threadid=9510;start=0#msg86752 date=1090146860]
that script looks pretty good to me
i would seperate the packages from the code and put them in a config file though, but other than that, it looks good
[/quote]
Sure, if it was standalone or something. As it stands, during the pre-script section of kickstart, I have to wget this file from a server then execute it. So I wanted it all in one file. But yeah, otherwise it would have gone into it's own file for use by other things as well.
Bookmarks