I need to write installer for linux, it's a yearly essay...so, it should install rpms, mount some fs and set some other settings, such as xconf...mouse...keyboard...There's must be very primitive GUI, like in zenwalk...no web-based or other sugariness interface =) (like Anaconda)... maybe ncurses-based?

Main question: how to make an installer? Some manual or help? I've gooled it, and didn't find anything useable materials...

P.S. i'm newbie...