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

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



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

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
>
>