Le 12 janv. 2012 à 19:46, bsd a écrit :

> 
> Le 12 janv. 2012 à 17:29, ss griffon a écrit :
> 
>> On Thu, Jan 12, 2012 at 8:09 AM, bsd <b...@todoo.biz> wrote:
>>> Hi,
>>> 
>>> 
>>> I am following the FBSD handbook tutorial in order to install the world in 
>>> my jail template :
>>> 
>>> # cd /usr/src
>>> # make installworld DESTDIR=/jails/j/mroot
>>> 
>>> 
>>> The directory already exists.
>>> 
>>> I have the following errors :
>>> 
>>> 
>>>> ln -fs libcom_err.so.5 /jails/j/mroot/usr/lib/libcom_err.so
>>>> install -C -o root -g wheel -m 444  
>>>> /usr/src/lib/libcom_err/../../contrib/com_err/com_err.h 
>>>> /usr/src/lib/libcom_err/../../contrib/com_err/com_right.h 
>>>> /jails/j/mroot/usr/include
>>>> install -o root -g wheel -m 444 com_err.3.gz  
>>>> /jails/j/mroot/usr/share/man/man3
>>>> ===> lib/libcom_err/doc (install)
>>>> install-info --quiet  --defsection="Programming & development tools."  
>>>> --defentry="* libcom_err: (com_err).        A Common Error Description 
>>>> Library for UNIX."  com_err.info /jails/j/mroot/usr/share/info/dir
>>>> install-info: /jails/j/mroot/usr/share/info/dir: empty file
>>>> *** Error code 1
>>>> 
>>>> Stop in /usr/src/lib/libcom_err/doc.
>>>> *** Error code 1
>>>> 
>>>> Stop in /usr/src/lib/libcom_err.
>>>> *** Error code 1
>>>> 
>>>> Stop in /usr/src/lib.
>>>> *** Error code 1
>>>> 
>>>> Stop in /usr/src.
>>>> *** Error code 1
>>>> 
>>>> Stop in /usr/src.
>>>> *** Error code 1
>>>> 
>>>> Stop in /usr/src.
>>>> *** Error code 1
>>>> 
>>>> Stop in /usr/src.
>>>> 
>>> 
>>> 
>>> 
>>> 
>>> Target OS is 9.0-RC3.
>>> 
>>> 
>>> Thanks for your help.
>>> 
>>> 
>>> ––––––––––––––––––––––––––––––––––––––––––––––
>>> ---------> Grégory Bernard Director <---------
>>> ---------------> www.osnet.eu <---------------
>>> --> Your provider of OpenSource appliances <--
>>> ––––––––––––––––––––––––––––––––––––––––––––––
>>> OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO
>>> 
>>> _______________________________________________
>>> freebsd-questions@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>> 
>> Can you check if any of the directories in the path:
>> /jails/j/mroot/usr/share/info/dir are actually created as empty files?
>> It seems like I have had that problem before but I don't remember what
>> the cause was.  I fixed it by deleting the file and making it a
>> directory.
> 
> As far as I can tell all directories are "directories" and not empty files. 
> 
> 
> [root@surf /jails]# cd j
> [root@surf /jails/j]# ls -al 
> total 6
> drwxr-xr-x   4 root  wheel   4 Jan 12 18:16 .
> drwxr-xr-x   4 root  wheel   4 Jan 12 18:08 ..
> drwxr-xr-x  17 root  wheel  18 Jan 12 23:43 mroot
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:16 skel
> [root@surf /jails/j]# cd mroot/
> [root@surf /jails/j/mroot]# ls -al 
> total 26
> drwxr-xr-x  17 root  wheel  18 Jan 12 23:43 .
> drwxr-xr-x   4 root  wheel   4 Jan 12 18:16 ..
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 bin
> drwxr-xr-x   7 root  wheel   7 Jan 12 18:18 boot
> dr-xr-xr-x   2 root  wheel   2 Jan 12 18:18 dev
> drwxr-xr-x  20 root  wheel  20 Jan 12 18:18 etc
> drwxr-xr-x   3 root  wheel   4 Jan 12 23:43 lib
> drwxr-xr-x   3 root  wheel   3 Jan 12 18:18 libexec
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 media
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 mnt
> dr-xr-xr-x   2 root  wheel   2 Jan 12 18:18 proc
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 rescue
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 root
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 sbin
> lrwxr-xr-x   1 root  wheel  11 Jan 12 23:43 sys -> usr/src/sys
> drwxrwxrwt   2 root  wheel   2 Jan 12 18:18 tmp
> drwxr-xr-x  14 root  wheel  14 Jan 12 18:18 usr
> drwxr-xr-x  23 root  wheel  23 Jan 12 18:18 var
> [root@surf /jails/j/mroot]# cd usr/
> [root@surf /jails/j/mroot/usr]# ls -al 
> total 22
> drwxr-xr-x  14 root  wheel  14 Jan 12 18:18 .
> drwxr-xr-x  17 root  wheel  18 Jan 12 23:43 ..
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 bin
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 games
> drwxr-xr-x  51 root  wheel  53 Jan 12 20:21 include
> drwxr-xr-x   7 root  wheel  28 Jan 12 23:43 lib
> drwxr-xr-x   4 root  wheel   4 Jan 12 18:18 lib32
> drwxr-xr-x   5 root  wheel   5 Jan 12 18:18 libdata
> drwxr-xr-x   6 root  wheel   6 Jan 12 18:18 libexec
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 local
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 obj
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 sbin
> drwxr-xr-x  27 root  wheel  27 Jan 12 18:18 share
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:18 src
> [root@surf /jails/j/mroot/usr]# cd share/
> [root@surf /jails/j/mroot/usr/share]# ls -al 
> total 47
> drwxr-xr-x   27 root  wheel   27 Jan 12 18:18 .
> drwxr-xr-x   14 root  wheel   14 Jan 12 18:18 ..
> drwxr-xr-x    8 root  wheel    8 Jan 12 18:18 calendar
> drwxr-xr-x    2 root  wheel    2 Jan 12 18:18 dict
> drwxr-xr-x   13 root  wheel   13 Jan 12 18:18 doc
> drwxr-xr-x   37 root  wheel   37 Jan 12 18:18 examples
> drwxr-xr-x    3 root  wheel    3 Jan 12 18:18 games
> drwxr-xr-x   16 root  wheel   16 Jan 12 18:18 groff_font
> drwxr-xr-x    4 root  wheel    4 Jan 12 18:18 i18n
> drwxr-xr-x    3 root  wheel    3 Jan 12 18:21 info
> drwxr-xr-x  176 root  wheel  176 Jan 12 18:18 locale
> drwxr-xr-x   25 root  wheel   26 Jan 12 23:43 man
> drwxr-xr-x    2 root  wheel    2 Jan 12 18:18 me
> drwxr-xr-x    3 root  wheel    3 Jan 12 18:18 misc
> drwxr-xr-x    2 root  wheel    2 Jan 12 18:18 mk
> drwxr-xr-x  157 root  wheel  159 Jan 12 23:43 nls
> drwxr-xr-x    3 root  wheel    3 Jan 12 18:18 openssl
> drwxr-xr-x    7 root  wheel    7 Jan 12 18:18 pc-sysinstall
> drwxr-xr-x    2 root  wheel    2 Jan 12 18:18 security
> drwxr-xr-x    2 root  wheel    2 Jan 12 18:18 sendmail
> drwxr-xr-x    2 root  wheel    2 Jan 12 18:18 skel
> drwxr-xr-x    4 root  wheel    4 Jan 12 18:18 snmp
> drwxr-xr-x    5 root  wheel    5 Jan 12 18:18 syscons
> drwxr-xr-x    2 root  wheel    2 Jan 12 18:18 tabset
> drwxr-xr-x    4 root  wheel    4 Jan 12 18:18 tmac
> drwxr-xr-x    3 root  wheel    3 Jan 12 18:18 vi
> drwxr-xr-x   14 root  wheel   14 Jan 12 18:18 zoneinfo
> [root@surf /jails/j/mroot/usr/share]# cd info/
> [root@surf /jails/j/mroot/usr/share/info]# ls -al 
> total 5
> drwxr-xr-x   3 root  wheel   3 Jan 12 18:21 .
> drwxr-xr-x  27 root  wheel  27 Jan 12 18:18 ..
> drwxr-xr-x   2 root  wheel   2 Jan 12 18:21 dir
> 
> 
> 

The problem was due to the hierarchy of the file system. 
This is a ZFS root filesystem where I have the following structure : 


[root@surf /home/gregober]# zfs list
NAME                       USED  AVAIL  REFER  MOUNTPOINT
zroot                     7.46G   906G   345M  legacy
zroot/jails               15.8M   906G    33K  /jails
zroot/jails/j             15.8M   906G    33K  /jails/j
zroot/jails/j/mroot       15.7M   906G  15.7M  /jails/j/mroot
zroot/jails/j/skel          31K   906G    31K  /jails/j/skel
zroot/jails/js              31K   906G    31K  /jails/js
zroot/swap                4.13G   910G    16K  -
zroot/tmp                 34.3M   906G  34.3M  /tmp
zroot/usr                 2.77G   906G  1.79G  /usr
zroot/usr/home            4.40M   906G  4.40M  /usr/home
zroot/usr/ports            310M   906G   310M  /usr/ports
zroot/usr/ports/distfile    31K   906G    31K  /usr/ports/distfile
zroot/usr/ports/packages    31K   906G    31K  /usr/ports/packages
zroot/usr/src              689M   906G   689M  /usr/src
zroot/var                  173M   906G   334K  /var
zroot/var/db               172M   906G   172M  /var/db
zroot/var/db/pkg           276K   906G   276K  /var/db/pkg
zroot/var/empty             31K   906G    31K  /var/empty
zroot/var/log              128K   906G   128K  /var/log
zroot/var/mail            35.5K   906G  35.5K  /var/mail
zroot/var/run             55.5K   906G  55.5K  /var/run
zroot/var/tmp               32K   906G    32K  /var/tmp


Somehow make installworld didn't like to have this structure : 

zroot/jails/j             15.8M   906G    33K  /jails/j
zroot/jails/j/mroot       15.7M   906G  15.7M  /jails/j/mroot
zroot/jails/j/skel          31K   906G    31K  /jails/j/skel


I have destroyed zroot/jails/j/mroot and zroot/jails/j/skel and install went 
allright. 


Sincerely yours. 

G.B. 



––––––––––––––––––––––––––––––––––––––––––––––
---------> Grégory Bernard Director <---------
---------------> www.osnet.eu <---------------
--> Your provider of OpenSource appliances <--
––––––––––––––––––––––––––––––––––––––––––––––
OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to