Re: pkg writing to /

From: Daniel Braniss <danny_at_cs.huji.ac.il>
Date: Mon, 06 Mar 2023 05:45:29 UTC

> On 6 Mar 2023, at 02:56, Kevin Oberman <rkoberman@gmail.com> wrote:
> 
> On Sat, Mar 4, 2023 at 11:37 PM Daniel Braniss <danny@cs.huji.ac.il <mailto: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 …. (i don’t 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 <mailto:rkoberman@gmail.com>
> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683