[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] creating basejail, when no direct internet connection?



Title: Re: [ezjail] creating basejail, when no direct internet connection?
Rainer,

I had to deal with this too.

If you have a proxy avail (squid?) you can use that.  But, since `ftp` is picky about when it will proxy, you will want to make `ezjail-admin` use `fetch` instead of `ftp`.

Here is the down and dirty against ezjail-3.2.3:

Lines 333-345:  Comment them out.  This means you will have to get your ‘-r’ flag exactly right

Line 1042:  change

        ftp "${ezjail_ftphost}:${ezjail_path}/${ezjail_installarch}/${ezjail_release}/${pkg}${ezjail_pkgsuffix}" && break

To

        fetch "http://${ezjail_ftphost}:/${ezjail_path}/${ezjail_installarch}/${ezjail_release}/${pkg}${ezjail_pkgsuffix}" && break

And that is it.  Make sure you have HTTP_PROXY correct in your environment.

Not pretty, but workable.  Was in a hurry and needed a one time fix.

Luck,

ben

On 10/31/12 10:59 AM, "Rainer Duffner" <rainer AT ultra-secure DOT de> wrote:

Hi,

how do you install the base-jail with no direct internet-connection?

I tried to give it the ISO-image, the mounted ISO-image, but I get:

(hostname </root>) 0 # ezjail-admin install -m -p -h
"file:///mnt"                                                                                                                                                                                                [15:58]
[: -ge: unexpected operator [: -ge: unexpected operator
[: -ge: unexpected operator
[: -ge: unexpected operator
cd: //mnt/base: No such file or directory
Error: Could not cd to /mnt.



Any ideas?

This is 9.1RC2.



Rainer