wiki:installation_tool.sh

The "installation_tool.sh" script

Objective

Create the installation system, including kernel, initrd, installer, rescue system, isolinux, etc.

Where to get it

The script is in the SVN caixamagica repository at:

installation_tool.sh

To use it you should check out the entire directory with the following command:

svn co http://contribsoft.caixamagica.pt/repo/caixamagica/scripts/installation installation

Usage

This script must be executed by the root user.
This script must be executed in a mandriva like system (Caixa Mágica 11 or earlier is not possible)

First make sure you have all necessary packages installed for your system. You can run the following script:
packages_to_install.sh
This script will add new repositories, remove the DVD as a source repository, and install all necessary packages.

installation_tool.sh --squashunsquashpushpull <filename>

installation_tool.sh --svn-commit <"commit_message">

installation_tool.sh --svn-updatesvn-checkoutmakepush-all-ftppush-all-iso


--squash -> Uses squashfs to squash the specified directory contents, replacing any file with the same name that already exists (the file will have the name directory.sqfs) ;

--unsquash -> Uses squashfs to unsquash the specified file to a directory with the same name, replacing the current contents;

--pull -> Sends the specified file to the installation directory of the test FTP server, replacing any file there with the same name;;

--push -> Get the specified file from the installation directory of the test FTP server;

--svn-update -> Updates the \"drakx\" source files from the subversion server;

--svn-commit -> Commits the changes made to the \"drakx\" source to the subversion server;

--svn-checkout -> Checks out fort the first time the \"drakx\" source code from the subversion server;

--make -> Recreates the entire installation system and places it in the \"/export\" directory (replacing all already there). it assumes that a \"drakx\" checkout has been made previously;

--push-all-ftp -> Copies the content of the \"/export\" directory to the test FTP server;

--push-all-iso -> Copies the content of the \"/export\" directory to the local ISO image root directory;

Example:

installation_tool.sh --svn-checkout

Will do the initial checkout of the current version of "drakconf" from the Caixa Magica software Repository, and it will also copy the latest cooker kernel RPM package to be used as base for the installation kernel.

installation_tool.sh --make

Will create the entire installation system in the directory "/export" in the filesystems root.

installation_tool.sh --make

Will create the entire installation system in the directory "/export" in the filesystems root.

The contents of this directory can be copied to the ftp server or the CD/DVD image root.

installation_tool.sh --squash cminstall

Will create the file closed/cminstall.sqfs from the contents of the "open/cminstall/" directory

TO DO's

Last modified 11 years ago Last modified on Oct 17, 2007, 4:41:31 PM