From owner-freebsd-arch@freebsd.org Thu Sep 17 16:40:51 2020 Return-Path: Delivered-To: freebsd-arch@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DE93D3E64CF for ; Thu, 17 Sep 2020 16:40:51 +0000 (UTC) (envelope-from pawel.biernacki@gmail.com) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BsjQB6Hw9z4GXx for ; Thu, 17 Sep 2020 16:40:50 +0000 (UTC) (envelope-from pawel.biernacki@gmail.com) Received: by mail-lf1-f44.google.com with SMTP id u8so2911732lff.1 for ; Thu, 17 Sep 2020 09:40:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=lhN9LiP4WcYNXX9Owy9oL6ChUJ06lPMRoptLAHXOXXY=; b=sK9PvX0eWEd84Tjr32nCBUicnKQyo7Z1kNqQkWovPxCwIu/p15u1JPgBiCBZN6ULr5 c0u6yb3Olm34/TiXMd2dy19SJH2nTlawCPZAExw9HGD2nB8cmt6EJqKeKdWrbhhrIR+e O7c+Tk+a1CbOJGT4daPACnS4dRsEBFdPbeWi+Gr/0r3AzaIALEZ65ETOx7GlMPuouo8M NAP0KShU7IKYsXAH2hpUPS1lysEc90K4rf1zOEoecn3L1zOMJuobkDEL1oLfLmW9xO2W ejxOKtyoI99e+oWGJYKaR4EyITWs6oDiefJwWjuOt+FX1IrdE1YImkhAV57Nsn1wnbuG Roew== X-Gm-Message-State: AOAM5305xUXFP6pG68O2uF+Q8RaL9RqNn5HR90GjV9K+/uy8uRD8Xv4L 0sZhlllwWhGOSRa7A8D+urK60TTBuZg= X-Google-Smtp-Source: ABdhPJyp0WqMOsGAwameHDwltPaRPQEICQ1cPN3h1h3oT4sGAuz/LCVwiF4bNS6aDxOFGcZTCZOSbw== X-Received: by 2002:ac2:5f50:: with SMTP id 16mr10662272lfz.420.1600360848453; Thu, 17 Sep 2020 09:40:48 -0700 (PDT) Received: from localhost.localdomain (31-172-188-241.noc.fibertech.net.pl. [31.172.188.241]) by smtp.gmail.com with ESMTPSA id u2sm18556ljo.48.2020.09.17.09.40.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2020 09:40:47 -0700 (PDT) From: =?utf-8?Q?Pawe=C5=82_Biernacki?= Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.0.3.2.26\)) Subject: Re: Appropriate path for mount/fsck sub-programs? Date: Thu, 17 Sep 2020 18:40:45 +0200 References: <20200916204214.GA87473@spindle.one-eyed-alien.net> To: freebsd-arch@freebsd.org In-Reply-To: <20200916204214.GA87473@spindle.one-eyed-alien.net> Message-Id: <580CD0FA-98B5-4C73-91C9-FC9D274360A3@FreeBSD.org> X-Mailer: Apple Mail (2.3654.0.3.2.26) X-Rspamd-Queue-Id: 4BsjQB6Hw9z4GXx X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pawelbiernacki@gmail.com designates 209.85.167.44 as permitted sender) smtp.mailfrom=pawelbiernacki@gmail.com X-Spamd-Result: default: False [-0.34 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FORGED_SENDER(0.30)[kaktus@FreeBSD.org,pawelbiernacki@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; R_DKIM_NA(0.00)[]; TAGGED_FROM(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.84)[-0.835]; FROM_NEQ_ENVFROM(0.00)[kaktus@FreeBSD.org,pawelbiernacki@gmail.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; DMARC_NA(0.00)[FreeBSD.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.02)[-1.021]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_SPAM_SHORT(0.01)[0.012]; RCVD_IN_DNSWL_NONE(0.00)[209.85.167.44:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.167.44:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arch] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2020 16:40:51 -0000 > On 16 Sep 2020, at 22:42, Brooks Davis wrote: >=20 > [=E2=80=A6] > 0) Do nothing > 1a) Add /usr/local/sbin to _PATH_SYSPATH (it's only used in mount and > fsck). > 1b) The same, but a new variable. > 2) Switch to _PATH_DEFPATH (that also add .../bin directories). > 3) Use PATH, optionally prepending /rescue > 4) Use exevp and teach crunched_main.c to prepend /rescue to PATH. >=20 > I'd like opinions on what people think makes sense here. I think (0) > aligns poorly with current project directions, but how far to go is a > question to answer before implementing something. Great timing as I recently got hit by the sudden and unwelcome = appearance of /sbin/fsck_ext2fs on my systems. I created = https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249284 = to track = this issue. I believe that 1a) is the sanest and probably easiest to implement, or = maybe we should add an option to fsck to specify additional paths too = look at and update rc scripts to include /usr/local/sbin automatically. Pawel.