Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Mar 2023 13:15:09 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        freebsd-ports <ports@freebsd.org>
Subject:   Re: pkg writing to /
Message-ID:  <3EBE6923-91CB-4078-923C-3F3357E22FB8@cs.huji.ac.il>
In-Reply-To: <20230306080712.cwt6bxeiwbpba6e4@aniel.nours.eu>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <bapt@FreeBSD.org> 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 <bapt@FreeBSD.org> =
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

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;">so I=E2=80=99m =
trying again with a read-only root, /var is zfs and =
writable<div><br><div><span style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 12px;">bhv-10# pkg =
update</span><br style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0); font-family: Menlo-Regular; font-size: 12px;"><span =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;">Updating FreeBSD repository =
catalogue...</span><br style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, =
0, 0); font-family: Menlo-Regular; font-size: 12px;"><span =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;">Fetching meta.conf: 100% =
&nbsp;&nbsp;&nbsp;163 B &nbsp;&nbsp;0.2kB/s &nbsp;&nbsp;&nbsp;00:01 =
&nbsp;&nbsp;&nbsp;</span><br style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 12px;"><span =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;">Fetching packagesite.pkg: 100% =
&nbsp;&nbsp;&nbsp;7 MiB &nbsp;&nbsp;1.4MB/s &nbsp;&nbsp;&nbsp;00:05 =
&nbsp;&nbsp;&nbsp;</span><br style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 12px;"><span =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;">pkg: Error extracting the archive: =
'Write error'</span><br style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 12px;"><span =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;">pkg: No signature found</span><br =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;"><span style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: =
12px;">Unable to update repository FreeBSD</span><br style=3D"caret-color:=
 rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular; =
font-size: 12px;"><span style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 12px;">Error =
updating repositories!</span><br style=3D"caret-color: rgb(0, 0, 0); =
color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 12px;"><span =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;">bhv-10# df /var/tmp</span><br =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;"><span style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: =
12px;">Filesystem 1K-blocks &nbsp;&nbsp;Used =
&nbsp;&nbsp;&nbsp;&nbsp;Avail Capacity &nbsp;Mounted on</span><br =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;"><span style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: =
12px;">h/var &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;986158480 324336 985834144 =
&nbsp;&nbsp;&nbsp;&nbsp;0% &nbsp;&nbsp;&nbsp;/var</span><br =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;"><span style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: =
12px;">bhv-10# df /var</span><br style=3D"caret-color: rgb(0, 0, 0); =
color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 12px;"><span =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;">Filesystem 1K-blocks &nbsp;&nbsp;Used =
&nbsp;&nbsp;&nbsp;&nbsp;Avail Capacity &nbsp;Mounted on</span><br =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Menlo-Regular; font-size: 12px;"><span style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: =
12px;">h/var &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;986158456 324336 985834120 =
&nbsp;&nbsp;&nbsp;&nbsp;0% &nbsp;&nbsp;&nbsp;/var</span></div><div><font =
color=3D"#000000" face=3D"Menlo-Regular"><span style=3D"caret-color: =
rgb(0, 0, 0); font-size: 12px;"><br></span></font><blockquote =
type=3D"cite"><div>On 6 Mar 2023, at 10:07, Baptiste Daroussin =
&lt;bapt@FreeBSD.org&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><div>On Mon, Mar 06, 2023 at =
09:57:55AM +0200, Daniel Braniss wrote:<br><blockquote type=3D"cite">is =
this true also for =E2=80=98pky update=E2=80=99?<br></blockquote><br>I =
don't understand the question here, pkg update does not do anything in =
/<br><br>Best regards,<br>Bapt<br><blockquote type=3D"cite"><br>the =
/compat was a problem,<br>it was a symlink /usr/local/compat and for =
some reason the mkdir /compat/linux failed,<br>i did as root =E2=80=98mkdi=
r /usr/local/compat/linux=E2=80=99, and linux installed =
ok.<br>danny<br><br><br><blockquote type=3D"cite">On 6 Mar 2023, at =
09:52, Baptiste Daroussin &lt;bapt@FreeBSD.org&gt; wrote:<br><br>On Sun, =
Mar 05, 2023 at 09:37:32AM +0200, Daniel Braniss wrote:<br><blockquote =
type=3D"cite">Hi,<br><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>how can I tell pkg not to write =
to /? in my case sometimes /<br>is mounted ro, and so for example pkg =
update failed, or<br>/ - which is usually- kept as small as possible =
gets filled up, eg <br>by =
/.pkgtemp.compat.xxxxx/linux<br><br>thanks,<br><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>danny<br><br><br></blockquote>This is because you don't have a =
/compat on your / but you are trying to<br>install a package that =
installs files under =
/compat<br><br>Bapt<br></blockquote><br></blockquote><br></div></div></blo=
ckquote></div><br></div></body></html>=

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EBE6923-91CB-4078-923C-3F3357E22FB8>