Date: Mon, 6 Mar 2023 07:45:29 +0200 From: Daniel Braniss <danny@cs.huji.ac.il> To: Kevin Oberman <rkoberman@gmail.com> Cc: freebsd-ports <ports@freebsd.org> Subject: Re: pkg writing to / Message-ID: <B25DE019-EE6A-4109-AF1A-708D5FD337A5@cs.huji.ac.il> In-Reply-To: <CAN6yY1vEc0AT42qFW%2BkAsUkxq22j58%2BuBsJTSNd==fMOUAYLvg@mail.gmail.com> References: <40ED6A0D-68BD-4A05-A9A6-9AE48153AB06@cs.huji.ac.il> <CAN6yY1vEc0AT42qFW%2BkAsUkxq22j58%2BuBsJTSNd==fMOUAYLvg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <rkoberman@gmail.com> wrote: >=20 > On Sat, Mar 4, 2023 at 11:37=E2=80=AFPM 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=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 <mailto: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 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br = class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D"">On 6 Mar 2023, at 02:56, Kevin Oberman <<a = href=3D"mailto:rkoberman@gmail.com" class=3D"">rkoberman@gmail.com</a>>= wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div = dir=3D"ltr" class=3D""><div dir=3D"ltr" class=3D""><div = class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small">On Sat, Mar 4, = 2023 at 11:37=E2=80=AFPM Daniel Braniss <<a = href=3D"mailto:danny@cs.huji.ac.il" class=3D"">danny@cs.huji.ac.il</a>>= wrote:</div></div><div class=3D"gmail_quote"><blockquote = class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px = solid rgb(204,204,204);padding-left:1ex">Hi,<br class=3D""> how can I tell pkg not to write to /? in my = case sometimes /<br class=3D""> is mounted ro, and so for example pkg update failed, or<br class=3D""> / - which is usually- kept as small as possible gets filled up, eg <br = class=3D""> by /.pkgtemp.compat.xxxxx/linux<br class=3D""> <br class=3D""> thanks,<br class=3D""> danny<br class=3D""></blockquote><div = class=3D""> </div></div><div = style=3D"font-family:tahoma,sans-serif;font-size:small" = class=3D"gmail_default">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.<br = class=3D""></div></div></div></blockquote><div><br class=3D""></div>with = a read-only root this failed:</div><div><span class=3D"Apple-tab-span" = style=3D"white-space:pre"> </span>pkg update</div><div><br = class=3D""></div><div>with a writable root the above = works.</div><div><br class=3D""></div><div>also, using portmaster =E2=80=A6= . (i don=E2=80=99t know which port, but suspect linux)</div><div>the = root partition got filled up, and after some hunting i = found </div><div><span style=3D"caret-color: rgb(0, 0, 0); color: = rgb(0, 0, 0);" class=3D"">du -hs = /.pkgtemp.compat.7vhU2YxJLCDB/</span><br style=3D"caret-color: rgb(0, 0, = 0); color: rgb(0, 0, 0);" class=3D""><span style=3D"caret-color: rgb(0, = 0, 0); color: rgb(0, 0, 0);" class=3D"">243M = /.pkgtemp.compat.7vhU2YxJLCDB/</span></div><div><font = color=3D"#000000" class=3D""><span style=3D"caret-color: rgb(0, 0, 0);" = class=3D""><br class=3D""></span></font><blockquote type=3D"cite" = class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><span = class=3D"gmail_signature_prefix">-- </span><br class=3D""><div dir=3D"ltr"= class=3D"gmail_signature"><div dir=3D"ltr" class=3D""><div = class=3D""><div dir=3D"ltr" class=3D""><div class=3D""><div dir=3D"ltr" = class=3D""><div class=3D""><div dir=3D"ltr" class=3D"">Kevin Oberman, = Part time kid herder and retired Network Engineer<br class=3D"">E-mail: = <a href=3D"mailto:rkoberman@gmail.com" target=3D"_blank" = class=3D"">rkoberman@gmail.com</a><br class=3D""></div><div class=3D"">PGP= Fingerprint: = D03FB98AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></di= v></div></div></div> </div></blockquote></div><br class=3D""></body></html>= --Apple-Mail=_6E7C6546-2075-4499-9292-CB283F121182--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B25DE019-EE6A-4109-AF1A-708D5FD337A5>