[scponly] setup_chroot.sh

Roland Lammel roland.lammel at kapsch.net
Thu Nov 20 09:17:43 EST 2003


Looks very promising, good idea ;-)

I'm probably can provide pre and if needed post setup scripts for debian and solaris, but
as I'm quite busy at the moment, I'm sure someone will provide them earlier...

Cheers

+rl

wby oblyr wrote:
> well, as many of you know, setup_chroot.sh and setup_chroot.sh.in has been one of the most problematic aspects of scponly
> installation.  a generic script to create chrooted jails just isnt as easy as one might hope.  i've done some initial
> overhauling, and as per Sven's suggestion, come up with a framework for a more extensible installation script.
> 
> the first part of the setup_chroot script is intended just to figure things out, without making any changes. it looks like 
> this:
>  - probe the filesystem for the locations of binaries
>  - probe the filesystem for the locations of libraries required by the binaries
>  - ask the user a couple of questions about their preferences
>  - check for the existence of an OS specific presetup script in the build_extras/arch directory
> 
> the idea here is that the generic case (setup_chroot.sh) will take a best guess approach, but any customizations required
> for the various platforms can be located in a seperate file. 
> 
> the pathname of this file will be "build_extras/arch/`uname -sr`.pre.sh"
> 
> the second part of the installation script actually makes the changes, as follows:
>  - install directories
>  - install binaries
>  - install libraries
>  - check for the existence of a postsetup script in the build_extras/arch directory
> 
> the pathname of this file will be "build_extras/arch/`uname -sr`.post.sh"
> 
> so for example, additional things required for redhat, debian, irix, solaris, etc etc ad nauseum can be located in seperate 
> files.
> 
> 
> 
> it is my hope that people will contribute these presetup and postsetup scripts to me via email, so that i can add them to the 
> arch directory.
> 
> let me know if you see any problems with this idea.  incidentally, i think it initially came from Roland Lammel. 
> 
> thanks,
> joe
> 
> 

-- 
Ing. Roland Lammel | Technical Assistance Services
Kapsch CarrierCom AG | Am Europlatz 5 | 1120 Vienna | Austria
Phone +43 (0)50811 3456 | Mobile +43 664 628 3456 | Fax +43 (0)50811 3405
mailto:roland.lammel at kapsch.net | http://www.kapsch.net




More information about the scponly mailing list