Re: pkg writing to /

From: Daniel Braniss <danny_at_cs.huji.ac.il>
Date: Mon, 06 Mar 2023 13:11:51 UTC

> On 6 Mar 2023, at 13:30, Eugene Grosbein <eugen@grosbein.net> wrote:
> 
> 06.03.2023 18:15, Daniel Braniss wrote:
> 
>> so I’m 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!
> 
> Make sure you either have /tmp mounted r/w as file system, or point TMPDIR to /var/tmp or elsewhere mounted r/w.
> 

/var/tmp and /tmp are r/w