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

Re: [ezjail] ezjail and mergemaster on Freebsd 7.2 and up



Jon Passki schreef:
Gotcha. Does the link target exist?  If so, is that a file? I do not
know what is causing the issue in ezjail, though.

Jon

  
It happens on 7.2 and above

on the new machine 8.0-BETA1 i have this
drwxr-xr-x   2 root  wheel   512 Jul  4 14:11 basejail
lrwxr-xr-x   1 root  wheel    13 Jul  4 14:11 bin -> /basejail/bin
lrwxr-xr-x   1 root  wheel    16 Jul  7 22:09 boot -> ../basejail/boot
dr-xr-xr-x   2 root  wheel   512 Jul  4 14:11 dev
drwxr-xr-x  20 root  wheel  2048 Jul  4 14:12 etc
lrwxr-xr-x   1 root  wheel    13 Jul  4 14:11 lib -> /basejail/lib
lrwxr-xr-x   1 root  wheel    17 Jul  4 14:11 libexec -> /basejail/libexec
drwxr-xr-x   2 root  wheel   512 Jul  4 14:11 media
drwxr-xr-x   2 root  wheel   512 Jul  4 14:11 mnt
dr-xr-xr-x   2 root  wheel   512 Jul  4 14:11 proc
lrwxr-xr-x   1 root  wheel    16 Jul  4 14:11 rescue -> /basejail/rescue
drwxr-xr-x   2 root  wheel   512 Jul  4 14:11 root
lrwxr-xr-x   1 root  wheel    14 Jul  4 14:11 sbin -> /basejail/sbin
lrwxr-xr-x   1 root  wheel    11 Jul  4 14:11 sys -> usr/src/sys
drwxrwxrwt   2 root  wheel   512 Jul  4 14:11 tmp
drwxr-xr-x   4 root  wheel   512 Jul  4 14:11 usr
drwxr-xr-x  22 root  wheel   512 Jul  4 14:11 var

the basejail dit however is emty!!!!!!!!

On one of my other 7.1 system i have

-r--r--r--   1 root  wheel  6188 Jan 21  2008 COPYRIGHT
drwxr-xr-x   9 root  wheel   512 Jan 14  2008 basejail
lrwxrwxrwx   1 root  wheel    13 Jan 21  2008 bin -> /basejail/bin
lrwxrwxrwx   1 root  wheel    14 Jan 21  2008 boot -> /basejail/boot
dr-xr-xr-x   5 root  wheel   512 Jul  2 16:15 dev
drwxr-xr-x  20 root  wheel  2048 Jul  7 09:56 etc
lrwxr-xr-x   1 root  wheel     8 Jan 24  2008 home -> usr/home
lrwxrwxrwx   1 root  wheel    13 Jan 21  2008 lib -> /basejail/lib
lrwxrwxrwx   1 root  wheel    17 Jan 21  2008 libexec -> /basejail/libexec
drwxr-xr-x   2 root  wheel   512 Jan 21  2008 media
drwxr-xr-x   2 root  wheel   512 Jan 21  2008 mnt
dr-xr-xr-x   1 root  wheel     0 Jul  7 22:10 proc
lrwxrwxrwx   1 root  wheel    16 Jan 21  2008 rescue -> /basejail/rescue
drwxr-xr-x   5 root  wheel   512 May 15 11:16 root
lrwxrwxrwx   1 root  wheel    14 Jan 21  2008 sbin -> /basejail/sbin
lrwxrwxrwx   1 root  wheel    11 Jan 21  2008 sys -> usr/src/sys
drwxrwxrwt  10 root  wheel   512 Jul  7 10:05 tmp
drwxr-xr-x   6 root  wheel   512 Jan 24  2008 usr
drwxr-xr-x  23 root  wheel   512 Jul  2 16:15 var

and in the basejail dir i have the following
drwxr-xr-x   2 root  wheel  1024 Feb 28  2008 bin
drwxr-xr-x   7 root  wheel   512 Feb 28  2008 boot
drwxr-xr-x   3 root  wheel  1024 Feb 28  2008 lib
drwxr-xr-x   2 root  wheel   512 Feb 28  2008 libexec
drwxr-xr-x   2 root  wheel  2048 Feb 28  2008 rescue
drwxr-xr-x   2 root  wheel  2560 Feb 28  2008 sbin
drwxr-xr-x  12 root  wheel   512 Jan 14  2008 usr

So i guess that ezjail does not copy the basejail dir as it should be when creating a jail

the strange thing is  that this also happens if i go from 7.1 to 7.2
or does ezjail-admin update -i  also copies the basejail dir to all of the jail directory's

i have tested it on another machine that was running 7.1 and i did go to 7.2
first the basejaildir was full after the buildworld and the ezjail-admin update -i the basejail dir was empty.

thanks again
regards,
Johan


On Tue, Jul 7, 2009 at 12:30 PM, Johan
Hendriks<j.hendriks AT schavemaker DOT com> wrote:
  
Jon Passki schreef:

Hello,

(From below:)



install: mkdir /usr/jails/jail1//boot: File exists
install: /usr/jails/jail1//boot: No such file or directory


You currently have a file (not directory) called
'/usr/jails/jail1/boot'.  rm the file and rerun the commands. If the
commands for whatever reason create a file again, try to just mkdir
the directory and re-run.

Jon


On Tue, Jul 7, 2009 at 6:52 AM, Johan
Hendriks<j.hendriks AT schavemaker DOT com> wrote:


Hallo all

Hello all i use ezjail to setup jails.
I have this running on some machines that started form 7.0

i always use the following sequence to update between releases and to
install errata and security updates.(this is from the jailhost

Code:

cd /usr/src
make cleanworld && make -j2 buildworld && make -j2 kernel
mergemaster -p
make installworld
mergemaster -iU
ezjail-admin update -i
mergemaster -iU -D /usr/jails/jail1
mergemaster -iU -D /usr/jails/jail2
and so on.

this works from 7.0 to 7.1 with all security updates and so on

Now i upgrade 1 machine to 7.2 but on the mergemaster part i get the
following.

Code:

install -o root -g wheel -m 444
/usr/src/etc/../sys/amd64/conf/GENERIC.hints
/var/tmp/temproot/boot/device.hints


*** Beginning comparison

   *** Checking /usr/jails/jail1//etc/rc.d for stale files

   *** No stale files found


  *** There is no installed version of ./boot/device.hints


install: mkdir /usr/jails/jail1//boot: File exists
install: /usr/jails/jail1//boot: No such file or directory
*** FATAL ERROR: Unable to install ./boot/device.hints to
/usr/jails/jail1//boot

I also set up an new FreeBSD 8.0 system with ezjail and created a test jail,
and i get the same result.
How do i mergemaster my jails now.
I think i missed something, but can not find it.

--


Well it is not a file but a link to /basejail/boot
lrwxr-xr-x   1 root  wheel    14 Jul  4 14:11 boot -> /basejail/boot
.
But this is on a new created jail through ezjail, on a fresh FreeBSD
8.0-BETA1 system
Am i doing something wrong when creating the jail ?
i use this command:
ezjail-admin create -r /usr/jails/jail1 mailserver.mydomain.com 192.168.1.33

it creates the link to /basejail/boot.

thanks for your time
regards,
Johan Hendriks


    


--
_______________________
Johan Hendriks
Schavemaker Transport

Tel: +31 (0)251 229098
Fax: +31 (0)251 212016
email: j.hendriks AT schavemaker DOT com
web: http://www.schavemaker.com
_______________________
Confidentiality Notice: The information in this document may be
confidential. It is intended only for the use of the named recipient.
If you are not the intended recipient, please notify me immediately
and then delete this document. Do not disclose the contents of this document
to any other person, nor take any copies. Violation of this notice may be unlawful.

_______________________