Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jun 2015 18:01:42 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        "Eggert, Lars" <lars@netapp.com>
Cc:        "current@freebsd.org" <current@freebsd.org>
Subject:   Re: Difference between pkg 1.5.2 and 1.5.4
Message-ID:  <20150620160141.GF55891@ivaldir.etoilebsd.net>
In-Reply-To: <ABFFE8D9-219D-4D92-BE47-A08633887F0B@netapp.com>
References:  <ABFFE8D9-219D-4D92-BE47-A08633887F0B@netapp.com>

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

--Zs/RYxT/hKAHzkfQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 18, 2015 at 03:34:46PM +0000, Eggert, Lars wrote:
> Hi,
>=20
> I'm netbooting with a read-only rootfs. Up until version 1.5.2 of pkg, th=
at sometimes caused some errors when installing various packages, but the i=
nstall continued even if some files couldn't be written.
>=20
> That seems to have changed with 1.5.4. Specifically, upgrading ca_root_ns=
s from 3.19 to 3.19.1_1 now aborts in archive_read_extract () as shown belo=
w.
>=20
> This regression makes it difficult to run read-only; any chance this abor=
t can be turned into a warning instead?
>=20
> Lars
>=20
>=20
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up-to-date.
> All repositories are up-to-date.
> Checking integrity... done (0 conflicting)
> The following 1 package(s) will be affected (of 0 checked):
>=20
> Installed packages to be UPGRADED:
> 	ca_root_nss: 3.19 -> 3.19.1_1
>=20
> The process will require 42 B more space.
>=20
> Proceed with this action? [y/N]: y
> [1/1] Upgrading ca_root_nss from 3.19 to 3.19.1_1...
> You may need to manually remove /usr/local/etc/ssl/cert.pem if it's no lo=
nger needed.
> You may need to manually remove /usr/local/openssl/cert.pem if it's no lo=
nger needed.
> pkg: unlinkat(usr/local/share/licenses/ca_root_nss-3.19/LICENSE): No such=
 file or directory
> pkg: unlinkat(usr/local/share/licenses/ca_root_nss-3.19/MPL): No such fil=
e or directory
> pkg: unlinkat(usr/local/share/licenses/ca_root_nss-3.19/catalog.mk): No s=
uch file or directory
> [1/1] Extracting ca_root_nss-3.19.1_1:  71%
> pkg: archive_read_extract(): Can't create '/etc/ssl/cert.pem.pXkDjkwDtvyq'
> [1/1] Extracting ca_root_nss-3.19.1_1: 100%
> [1/1] Deleting files for ca_root_nss-3.19.1_1: 100%



Actually this is not related to a pkg bug at all

2 this happened here:
1/ your root is readonly and the ca_root_nss package is trying to create a =
file
on it (the is the change in _1).

Concerning the unlinkat issue is due to somehow the files being absent on t=
he
system before the upgrade.

pkg 1.5.2 would have shown the same thing

Best regards,
Bapt

--Zs/RYxT/hKAHzkfQ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlWFjmUACgkQ8kTtMUmk6EzK8QCfXkRtAfVMYlVWoYC9bgx7dA0C
sacAn36Hy0m57UJy8yUW3hLfVRh786hO
=FL2e
-----END PGP SIGNATURE-----

--Zs/RYxT/hKAHzkfQ--



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