From nobody Mon Mar 06 05:45:29 2023 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PVSGk2MQlz3wSNq for ; Mon, 6 Mar 2023 05:45:34 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVSGj5DfMz3kYK for ; Mon, 6 Mar 2023 05:45:33 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=M7zH1R58i7MB5KLNDltMkLnbUYidjxtqbT28tRr0rl0=; b=LYUUtSPibzHdifpUDC30ASPwmhuBCrPS0QixpUJHiAA314GjxN31wNL8C0cjKawb5GvSkDB9CwRU5tz+shFM3+hIJatcQTUed93fkK+puImjIfb0HNmkqKuMc1siIisJvbFf7F15RwURT4100u6P4If3kayFlv8nj3sYKI+/daJWak1qsSX36C8RuPgirsr7Wz4Yff0YIuMe89sQ5tcN3/Eh/2k2OANroZj4g+Gjy1c7ouwakk26zNfxv36Wpd32iKojLpEYdjv+WxRatKkR/zNWlNr9buyRpE3Sf7PHH6iXG76NNiu2KyQMLw9jSANu8Ve5x9bTXag+3Jk4CQqY8A==; Received: from bach.cs.huji.ac.il ([132.65.80.20] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1pZ3f7-000NWP-5J; Mon, 06 Mar 2023 07:45:29 +0200 From: Daniel Braniss Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_6E7C6546-2075-4499-9292-CB283F121182" List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: pkg writing to / Date: Mon, 6 Mar 2023 07:45:29 +0200 In-Reply-To: Cc: freebsd-ports To: Kevin Oberman References: <40ED6A0D-68BD-4A05-A9A6-9AE48153AB06@cs.huji.ac.il> X-Mailer: Apple Mail (2.3696.120.41.1.2) X-Rspamd-Queue-Id: 4PVSGj5DfMz3kYK X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/15, country:IL] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_6E7C6546-2075-4499-9292-CB283F121182 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 6 Mar 2023, at 02:56, Kevin Oberman wrote: >=20 > On Sat, Mar 4, 2023 at 11:37=E2=80=AFPM Daniel Braniss = > wrote: > Hi, > how can I tell pkg not to write to /? in my case sometimes / > is mounted ro, and so for example pkg update failed, or > / - which is usually- kept as small as possible gets filled up, eg=20 > by /.pkgtemp.compat.xxxxx/linux >=20 > thanks, > danny > =20 > What command are you using? Normally pkg should not be writing to root = unless one of the files it does write to is on the same file system. with a read-only root this failed: pkg update with a writable root the above works. also, using portmaster =E2=80=A6. (i don=E2=80=99t know which port, but = suspect linux) the root partition got filled up, and after some hunting i found=20 du -hs /.pkgtemp.compat.7vhU2YxJLCDB/ 243M /.pkgtemp.compat.7vhU2YxJLCDB/ > --=20 > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --Apple-Mail=_6E7C6546-2075-4499-9292-CB283F121182 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 6 Mar 2023, at 02:56, Kevin Oberman <rkoberman@gmail.com>= wrote:

On Sat, Mar 4, = 2023 at 11:37=E2=80=AFPM Daniel Braniss <danny@cs.huji.ac.il>= wrote:
Hi,
        how can I tell pkg not to write to /? in my = case sometimes /
is mounted ro, and so for example pkg update failed, or
/ - which is usually- kept as small as possible gets filled up, eg
by /.pkgtemp.compat.xxxxx/linux

thanks,
        danny
 
What command are you using? Normally pkg should = not be writing to root unless one of the files it does write to is on = the same file system.

with = a read-only root this failed:
pkg update

with a writable root the above = works.

also, using portmaster =E2=80=A6= . (i don=E2=80=99t know which port, but suspect linux)
the = root partition got filled up, and after some hunting i = found 
du -hs = /.pkgtemp.compat.7vhU2YxJLCDB/
243M =    /.pkgtemp.compat.7vhU2YxJLCDB/

--
Kevin Oberman, = Part time kid herder and retired Network Engineer
E-mail: = rkoberman@gmail.com
PGP= Fingerprint: = D03FB98AFA78E3B78C1694B318AB39EF1B055683

= --Apple-Mail=_6E7C6546-2075-4499-9292-CB283F121182--