From owner-freebsd-doc@FreeBSD.ORG Thu Dec 8 18:57:40 2011 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DD2F1065673 for ; Thu, 8 Dec 2011 18:57:40 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 35CEB8FC18 for ; Thu, 8 Dec 2011 18:57:39 +0000 (UTC) Received: by ggnp1 with SMTP id p1so3226775ggn.13 for ; Thu, 08 Dec 2011 10:57:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=IkVAYVevuhXFUZQpz2abM7uamgy3EHoWOuKxT3g4k+4=; b=RpYB8khA8HhSl9dbM4XzxYRuv8aYMPMqcZX0Qo3AvQyu/FKgpVtAArXUKco9VpD0VT 3wqXdFSLWDFfjszN3ZtwvH6uOP5w/XqbxZq/3gFJx2+aEJ6j1PxPEyNUqSvxLOo5EkwT +U3jl03inJky1z8xv2KmJgxRxeces0UofXDSI= MIME-Version: 1.0 Received: by 10.182.115.5 with SMTP id jk5mr958419obb.6.1323370659452; Thu, 08 Dec 2011 10:57:39 -0800 (PST) Received: by 10.182.142.101 with HTTP; Thu, 8 Dec 2011 10:57:39 -0800 (PST) In-Reply-To: <4EE0F6B2.8090005@FreeBSD.org> References: <201112071830.pB7IUEHQ082055@freefall.freebsd.org> <4EE0F6B2.8090005@FreeBSD.org> Date: Thu, 8 Dec 2011 21:57:39 +0300 Message-ID: From: Sergey Kandaurov To: John Baldwin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-doc@freebsd.org, Nathan Whitehorn Subject: Re: docs/163102: linprocfs mounted in wrong location in Handbook X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2011 18:57:40 -0000 On 8 December 2011 21:41, John Baldwin wrote: > On 12/7/11 1:30 PM, Manolis Kiagias wrote: >> >> The following reply was made to PR docs/163102; it has been noted by >> GNATS. >> >> From: Manolis Kiagias >> To: freebsd-doc@freebsd.org, bug-followup@FreeBSD.org >> Cc: VoidChicken@gmail.com >> Subject: Re: docs/163102: linprocfs mounted in wrong location in Handboo= k >> Date: Wed, 07 Dec 2011 20:26:21 +0200 >> >> =C2=A0On 7/12/2011 7:20 =C4=9B=C4=9B, Patrick Lamaiziere wrote: >> =C2=A0> =C2=A0The following reply was made to PR docs/163102; it has bee= n noted by >> GNATS. >> =C2=A0> >> =C2=A0> =C2=A0From: Patrick Lamaiziere >> =C2=A0> =C2=A0To: bug-followup@freebsd.org >> =C2=A0> =C2=A0Cc: Kevin Baxter >> =C2=A0> =C2=A0Subject: Re: docs/163102: linprocfs mounted in wrong locat= ion in >> Handbook >> =C2=A0> =C2=A0Date: Wed, 7 Dec 2011 18:02:34 +0100 >> =C2=A0> >> =C2=A0> =C2=A0 =C2=A0Le Wed, 7 Dec 2011 15:30:15 GMT, >> =C2=A0> =C2=A0 =C2=A0Kevin Baxter =C2=A0 a =C3=A9= crit : >> =C2=A0> >> =C2=A0> =C2=A0 =C2=A0> =C2=A0 =C2=A0$ ls /usr/compat >> =C2=A0> =C2=A0 =C2=A0> =C2=A0 =C2=A0ls: /usr/compat: No such file or dir= ectory >> =C2=A0> =C2=A0 =C2=A0> =C2=A0 =C2=A0$ ls -ld /compat >> =C2=A0> =C2=A0 =C2=A0> =C2=A0 =C2=A0drwxr-xr-x =C2=A0 3 root =C2=A0wheel= =C2=A0 =C2=A0 =C2=A0 =C2=A03 Jan 17 =C2=A02010 compat >> =C2=A0> =C2=A0 =C2=A0> >> =C2=A0> =C2=A0 =C2=A0> =C2=A0 =C2=A0It isn't a symlink on my system. At = what point in installation >> is it >> =C2=A0> =C2=A0 =C2=A0> =C2=A0 =C2=A0supposed to have been created? I don= 't see a mention of that >> =C2=A0> =C2=A0 =C2=A0> =C2=A0 anywhere in the Handbook. Chapter 11.2 eve= n refers to >> /compat/linux >> =C2=A0> =C2=A0 =C2=A0> =C2=A0 instead of /usr/compat/linux. >> =C2=A0> >> =C2=A0> =C2=A0 =C2=A0On 9.0 bsdinstall does not create the /compat symli= nk. Or >> =C2=A0> =C2=A0 =C2=A0even /compat, it is created when you install the li= nux base. >> =C2=A0> =C2=A0 =C2=A0You have to move /compat to /usr/compat and create = the link by hand. >> >> =C2=A0I've checked on 9.0-RC2 and the link is there, but my installs wer= e >> =C2=A0upgraded from 8.2-RELEASE, so you may have a point there. I'll che= ck on >> =C2=A0a clean 9.0-RC3 install shortly and report findings. > > > sysinstall did this in its magic installFixupBase() routine as bogon #4. > =C2=A0I've no idea if bsdinstall replicates all the same post-install fix= ups. > =C2=A0Hmm, my fresh 9.0 system has no /compat or /usr/compat, so > this seems to be missing. =C2=A0I think the package should keep installin= g > to /compat, but I don't really think the package should set the policy of > symlinking /compat to /usr/compat. =C2=A0That should be in the install if= /compat > doesn't already exist. Also from man hier: /compat/ normally a link to /usr/compat. If not, then the /usr/comp= at comments apply (created by sysinstall(8)) ... /usr/compat/ files needed to support binary compatibility with other operating systems, such as Linux (created b= y sysinstall(8)) So, I think the installer should be rather fixed to created this paths as it was before. Also, linux_base ports as well as ports .mk files reference /compat/linux e.g. as default LINUXBASE. > FWIW, for my own home-rolled installer on 8 I use the following shell > function to simulate installFixupBase() (note, the installed system is > mounted at /mnt, and this runs from the "outside" not in a chroot into > /mnt): > > # Fixups from installFixupBase() in sysinstall's install.c > install_fixups() > { > > =C2=A0 =C2=A0 =C2=A0 =C2=A0chmod 0755 /mnt/etc > =C2=A0 =C2=A0 =C2=A0 =C2=A0mkdir -p /mnt/var/db > =C2=A0 =C2=A0 =C2=A0 =C2=A0touch /mnt/var/db/mountdtab > =C2=A0 =C2=A0 =C2=A0 =C2=A0chmod 0644 /mnt/var/db/mountdtab > =C2=A0 =C2=A0 =C2=A0 =C2=A0mkdir /mnt/usr/compat > =C2=A0 =C2=A0 =C2=A0 =C2=A0ln -s usr/compat /mnt/compat > =C2=A0 =C2=A0 =C2=A0 =C2=A0chroot /mnt /bin/sh -c newaliases > =C2=A0 =C2=A0 =C2=A0 =C2=A0mtree -deU -f /mnt/etc/mtree/BSD.root.dist -p = /mnt > =C2=A0 =C2=A0 =C2=A0 =C2=A0mtree -deU -f /mnt/etc/mtree/BSD.var.dist -p /= mnt/var > =C2=A0 =C2=A0 =C2=A0 =C2=A0mtree -deU -f /mnt/etc/mtree/BSD.usr.dist -p /= mnt/usr > } --=20 wbr, pluknet