From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 02:59:53 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44FC21065670 for ; Sun, 24 Aug 2008 02:59:53 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id BEB2E8FC0C for ; Sun, 24 Aug 2008 02:59:52 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1004290fgb.35 for ; Sat, 23 Aug 2008 19:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=QgDD9uhyjhxE+nWTkoBQoiu6x6WCiTN6u6prUvn7ZOk=; b=ZyCI0xmap8v1CpdCjOc58dSYQ7zqrKd7N2x74jJaY02rv/EcRelOubRujhFxFz+iZb w/yxG44ahx3Ya5+RZyBQ23Uh+YmB/GIMXfF8LllzW5LR94C6ENPQUo5jT/yMdzKz0xIL vnwz0sq4FBS2RqbNFVIb7VVG5ut4dduMP4n8k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qZUlqxc7l2jL5Mnap5lUdmyrCAilWIEpAw+zD/LTl/VPiIjSZrm2QDQwknggRYtfmg l3qu5jmdj+GtkJnWmAM2liEP1ksLE5S/UuNYvQywhhPQaWlr2W4X2mTD/zqgj2JO9Yqp bklPsjkzsN06d5s0vMwSp+AkUIwJnUFPe+GZc= Received: by 10.86.29.19 with SMTP id c19mr2176616fgc.28.1219546791474; Sat, 23 Aug 2008 19:59:51 -0700 (PDT) Received: by 10.86.62.14 with HTTP; Sat, 23 Aug 2008 19:59:51 -0700 (PDT) Message-ID: <7d6fde3d0808231959i46027bd5xce2c142a21dcd940@mail.gmail.com> Date: Sat, 23 Aug 2008 19:59:51 -0700 From: "Garrett Cooper" To: "Aryeh Friedman" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080823153354.2ed632d4@peedub.jennejohn.org> <20080823231349.5941d9f3@gumby.homeunix.com.> <20080824003920.34f6bf51@gumby.homeunix.com.> Cc: RW , freebsd-hackers@freebsd.org Subject: Re: What is difference between /etc/rc called programs and ones called after login prompt shows up X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2008 02:59:53 -0000 On Sat, Aug 23, 2008 at 7:02 PM, Aryeh Friedman wrote: > On Sat, Aug 23, 2008 at 7:39 PM, RW wrote: >> On Sat, 23 Aug 2008 23:13:49 +0100 >> RW wrote: >> >>> On Sat, 23 Aug 2008 16:38:13 -0400 >>> "Aryeh Friedman" wrote: >>> >>> >>> > c) See a additionally to prove all the above here is my /etc/rc (the >>> > last 2 lines where added just to prove the point): >>> > >>> > #!/bin/sh >>> > >>> > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin >>> > >>> > swapon -a >>> > fsck -p >>> > ... >>> > fuse: failed to exec mount program: No such file or directory >>> > >>> > Thus it is clear that the *ONLY* difference between the /etc/rc >>> > calls and the post getty calls is when they are made. >>> >>> There's another difference: your /etc/rc script doesn't export PATH. >> >> That does seem to be the answer. >> >> I was curious as to why it only fails on ntfs, so I had a look >> at the source. It seems that mount and fsck find mount_* and fsck_* >> through a hard-coded path of "/rescue:/sbin:/usr/sbin", but >> mount_ntfs-3g then additionally has to find mount_fusefs through the >> environment path. >> >> Perhaps sysutils/fusefs-libs should be patched to make the whole thing >> more self-consistent. Isn't the typical use-case for fuse-based FS'es to be executed in userland though by non-root users? -Garrett