Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2024 07:47:06 +0200
From:      Mathieu Arnold <mat@freebsd.org>
To:        Robert Clausecker <fuz@fuz.su>
Cc:        Zsolt Udvari <uzsolt@freebsd.org>, ports@freebsd.org,  ports-developper@freebsd.org
Subject:   Re: Install file into /rescue
Message-ID:  <r4zvjjiigwcwz46mjdvbo7dfym3iosl2b3p7wtimvquh62mcgn@gp7mmxct7dbr>
In-Reply-To: <Zw-BrZ9ba6a1UBWp@fuz.su>
References:  <Zw9Sg5yTSvmTM9KP@bsd-zsolt-lenovo> <tgs7opl2ei5stk2w6fdpsdubjgquufciyk4txjtar6xmsv4itl@x7w23vzxv3p4> <Zw-BrZ9ba6a1UBWp@fuz.su>

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

--mpq54rbeamvhcjgk
Content-Type: text/plain; protected-headers=v1; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: Install file into /rescue
MIME-Version: 1.0

On Wed, Oct 16, 2024 at 11:04:45AM +0200, Robert Clausecker wrote:
> Hi Mathieu,
>=20
> Am Wed, Oct 16, 2024 at 10:53:28AM +0200 schrieb Mathieu Arnold:
> > On Wed, Oct 16, 2024 at 07:43:31AM +0200, Zsolt Udvari wrote:
> > > Hi,
> > >=20
> > > I want update a port (see https://bugs.freebsd.org/bugzilla/show_bug.=
cgi?id=3D282052 ),
> > > but I've a problem: the port wants install a file into /rescue and it
> > > causes an error (in poudriere):
> > > =3D=3D=3D>   Registering installation for mg-static-20241008,1 [14-de=
fault]
> > > Installing mg-static-20241008,1... pkg-static: Fail to create tempora=
ry
> > > file for /rescue/mg:Read-only file system *** Error code 1=20
> > >=20
> > > There is mg-static package in repository and has a file in /rescue so=
 I
> > > think should set something in my poudriere setup.
> > > My poudriere.conf is:
> > >=20
> > > ZPOOL=3Dzroot
> > > ZROOTFS=3D/poudriere
> > > FREEBSD_HOST=3D_PROTO_://_CHANGE_THIS_
> > > RESOLV_CONF=3D/etc/resolv.conf
> > > BASEFS=3D/usr/local/poudriere
> > > POUDRIERE_DATA=3D${BASEFS}/data
> > > USE_PORTLINT=3Dyes
> > > USE_TMPFS=3Dno
> > > DISTFILES_CACHE=3D/usr/local/poudriere/distfiles
> > > CCACHE_DIR=3D/var/cache/ccache
> > > ALLOW_MAKE_JOBS=3Dyes
> > > PARALLEL_JOBS=3D3=20
> > >=20
> > > How can I solve this problem?
> >=20
> > That one is easy, a port can only install files in PREFIX. So, it cannot
> > install files in /usr/s?bin, /s?bin or /rescue. It seems the static
> > flavor of this port is completely wrong.
>=20
> This is incorrect.  Many ports install files into /var for example.  Our
> infrastructure has explicit support for that, so why should it not be all=
owed
> if reasonable?

Many ports *create* files in /var when they run, but they don't
*install* files there, and that is probably fine.

> Unless we add ${PREFIX}/rescue (which wouldn't work if ${PREFIX} is on
> a different partition than /), I don't see anything wrong with putting
> binaries needed during system rescue into /rescue, even if they come from
> ports.
>=20
> I worked on this port before and had the same Poudriere issue; I tested t=
he
> port manually instead.
>=20
> > It seems like this is an editor, and it seems it wants to install itself
> > in /rescue for some reason, we already have vi in /rescue, so I'd say,
> > ignore the static flavor, as it's broken, or remove it, as it's broken.
> >=20
> > --=20
> > Mathieu Arnold
>=20
> Yours,
> Robert Clausecker
>=20
> --=20
> ()  ascii ribbon campaign - for an encoding-agnostic world
> /\  - against html email  - against proprietary attachments
>=20

--=20
Mathieu Arnold

--mpq54rbeamvhcjgk
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQITBAABCgB9FiEE9XJBpJetWizkEBUef2IOCp6dQb4FAmcQpNpfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY1
NzI0MUE0OTdBRDVBMkNFNDEwMTUxRTdGNjIwRTBBOUU5RDQxQkUACgkQf2IOCp6d
Qb6rvAv+LTZMOhv7Mt/O344akmSbcKurDqA6I1bfhhxJGaYauMzR5jv7yjVrI9Hp
OOit3vTOpKlY726MotRkMWMFM5bonjHE5SCujqOsSWeoR1eoZwpfQppqJu87DrWq
HlbyjPGAabFvAofUQ+oFMVkeqILTj/m8HOhc5q2P/vvtlkiXM6tEW6+PrkzSrt67
9TIwyXgwL9NpiowNIdcLDOIIEgDt+9lrBayveYHA3VaGe5CLo2DfpvEX9Qi337sx
i4S71iIl/IQmyM0QDLhezknFy6O0q5R2XlTIYXH2aUx2j288pkX9i6UBn1IHK2yw
Er6BthxM8ABJ6ND7oyQAnoxBICvXXCWM214R5b0KcsuFR2Rsyy/XxOxz7Vk+mzT1
H5Gkq782vnzPoYH0NDWzqN0JPOMmzdQ+nHjUN4towr8o+5VZV7fjVHAUTyGuLzai
ew4UKq0fM1FAe/3R2LxYWCMt/Ax7Z800K3lYhwY1gSyxXak2H8zsrB4WBt7Oz9yZ
okRmnQge
=jUDU
-----END PGP SIGNATURE-----

--mpq54rbeamvhcjgk--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?r4zvjjiigwcwz46mjdvbo7dfym3iosl2b3p7wtimvquh62mcgn>