From nobody Mon Mar 06 11:15:09 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 4PVbbJ1YJjz3wms6 for ; Mon, 6 Mar 2023 11:15:24 +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 4PVbbH55sJz4LR1; Mon, 6 Mar 2023 11:15:23 +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=yDB9TiknwC/bR7yGzzNIGHkJgT4j3AyaWmf4kwBaYfE=; b=wIBYyj9v3BFW/QDf1rSCoulK1rrvVmoX61/PaosVJQKSH3X2EUeLvfSFr/8e/SS04JErJBANlRFDxgSGmwhVNjkv64Gtz5PcBVAYTZtH7zMGHnqYRrPTWPzG3xvB8U99qNIS1+Tt768H9VPENUEqaK4F3C5YNtGQ/4B02veamRN3epsYXybMsCD54wbokioecOnG6uBv4eHjTq1XR7XOPv38VFkWo9xl9XE3Ftyg7kOEM5UCFm1qsYf0TrUpLZ6A7ZM2Wyi/AXsQWfd8qr5n5KuRQAopd2khUVe8UB5pd89k1B8pLlvX6au1dTzgQ/AZgLCqi2XulzyMmYBzTFJQYg==; Received: from imac.bk.cs.huji.ac.il ([132.65.179.42] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1pZ8oJ-00089K-Aq; Mon, 06 Mar 2023 13:15:19 +0200 From: Daniel Braniss Message-Id: <3EBE6923-91CB-4078-923C-3F3357E22FB8@cs.huji.ac.il> Content-Type: multipart/alternative; boundary="Apple-Mail=_12973EA8-7BB6-485A-97A1-1D57B515E89B" 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 \(3731.300.101.1.3\)) Subject: Re: pkg writing to / Date: Mon, 6 Mar 2023 13:15:09 +0200 In-Reply-To: <20230306080712.cwt6bxeiwbpba6e4@aniel.nours.eu> Cc: freebsd-ports To: Baptiste Daroussin References: <40ED6A0D-68BD-4A05-A9A6-9AE48153AB06@cs.huji.ac.il> <20230306075245.7srq6vzblzxil37u@aniel.nours.eu> <4D6D62EA-B271-4D00-BF02-9C4E34E5E54A@cs.huji.ac.il> <20230306080712.cwt6bxeiwbpba6e4@aniel.nours.eu> X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Rspamd-Queue-Id: 4PVbbH55sJz4LR1 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=_12973EA8-7BB6-485A-97A1-1D57B515E89B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 so I=E2=80=99m trying again with a read-only root, /var is zfs and = writable bhv-10# pkg update Updating FreeBSD repository catalogue... Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 =20 Fetching packagesite.pkg: 100% 7 MiB 1.4MB/s 00:05 =20 pkg: Error extracting the archive: 'Write error' pkg: No signature found Unable to update repository FreeBSD Error updating repositories! bhv-10# df /var/tmp Filesystem 1K-blocks Used Avail Capacity Mounted on h/var 986158480 324336 985834144 0% /var bhv-10# df /var Filesystem 1K-blocks Used Avail Capacity Mounted on h/var 986158456 324336 985834120 0% /var > On 6 Mar 2023, at 10:07, Baptiste Daroussin wrote: >=20 > On Mon, Mar 06, 2023 at 09:57:55AM +0200, Daniel Braniss wrote: >> is this true also for =E2=80=98pky update=E2=80=99? >=20 > I don't understand the question here, pkg update does not do anything = in / >=20 > Best regards, > Bapt >>=20 >> the /compat was a problem, >> it was a symlink /usr/local/compat and for some reason the mkdir = /compat/linux failed, >> i did as root =E2=80=98mkdir /usr/local/compat/linux=E2=80=99, and = linux installed ok. >> danny >>=20 >>=20 >>> On 6 Mar 2023, at 09:52, Baptiste Daroussin = wrote: >>>=20 >>> On Sun, Mar 05, 2023 at 09:37:32AM +0200, 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 >>>>=20 >>> This is because you don't have a /compat on your / but you are = trying to >>> install a package that installs files under /compat >>>=20 >>> Bapt >>=20 >=20 --Apple-Mail=_12973EA8-7BB6-485A-97A1-1D57B515E89B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 so I=E2=80=99m = trying again with a read-only root, /var is zfs and = writable

bhv-10# pkg = update
Updating FreeBSD repository = catalogue...
Fetching meta.conf: 100% =    163 B   0.2kB/s    00:01 =    
Fetching packagesite.pkg: 100% =    7 MiB   1.4MB/s    00:05 =    
pkg: Error extracting the archive: = 'Write error'
pkg: No signature found
Unable to update repository FreeBSD
Error = updating repositories!
bhv-10# df /var/tmp
Filesystem 1K-blocks   Used =     Avail Capacity  Mounted on
h/var      986158480 324336 985834144 =     0%    /var
bhv-10# df /var
Filesystem 1K-blocks   Used =     Avail Capacity  Mounted on
h/var      986158456 324336 985834120 =     0%    /var

On 6 Mar 2023, at 10:07, Baptiste Daroussin = <bapt@FreeBSD.org> wrote:

On Mon, Mar 06, 2023 at = 09:57:55AM +0200, Daniel Braniss wrote:
is = this true also for =E2=80=98pky update=E2=80=99?

I = don't understand the question here, pkg update does not do anything in = /

Best regards,
Bapt

the = /compat was a problem,
it was a symlink /usr/local/compat and for = some reason the mkdir /compat/linux failed,
i did as root =E2=80=98mkdi= r /usr/local/compat/linux=E2=80=99, and linux installed = ok.
danny


On 6 Mar 2023, at = 09:52, Baptiste Daroussin <bapt@FreeBSD.org> wrote:

On Sun, = Mar 05, 2023 at 09:37:32AM +0200, 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
by = /.pkgtemp.compat.xxxxx/linux

thanks,
= danny


This is because you don't have a = /compat on your / but you are trying to
install a package that = installs files under = /compat

Bapt



= --Apple-Mail=_12973EA8-7BB6-485A-97A1-1D57B515E89B--