Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2020 17:12:30 +0200
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Grzegorz Junka <list1@gjunka.com>
Cc:        freebsd-pkgbase@freebsd.org
Subject:   Re: /root on a separate dataset breaks FreeBSD-base installation
Message-ID:  <20200411171230.7a763370da92990c17aff4e1@bidouilliste.com>
In-Reply-To: <97d9e8d2-faa8-f02a-6a8e-008056486c65@gjunka.com>
References:  <97d9e8d2-faa8-f02a-6a8e-008056486c65@gjunka.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 11 Apr 2020 12:39:30 +0000
Grzegorz Junka <list1@gjunka.com> wrote:

> I am following https://wiki.freebsd.org/PkgBase
>=20
> This:
>=20
> pkg install -g 'FreeBSD-*'
>=20
> fails with this:
>=20
> [2/800] Extracting FreeBSD-runtime-12.1_3:=A0=A0 4%
> pkg: Fail to create hardlink:=20
> /root/.pkgtemp..cshrc.v5sxGCRu3GlP:Cross-device link
> [2/800] Extracting FreeBSD-runtime-12.1_3: 100%
>=20
> /root is in a different ZFS dataset. It works fine if it's not. Why pkg=20
> is using /root/.pkgtemp instead of /tmp or /var/tmp? It doesn't matter=20
> from where I run the command, looks like the path is hardcoded.

 pkg(8) first extract the file to the target directory but with a
temporary name, if it was using /tmp/ or /var/tmp/ it would have to
potentially move the file from one partition to another while right now
it can just rename it after having dealt with the old copy.

 Can you zfs list on this box please ?

> Can I workaround with some option to pkg?
>=20
> GrzegorzJ
>=20
>=20
> _______________________________________________
> freebsd-pkgbase@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-pkgbase
> To unsubscribe, send any mail to "freebsd-pkgbase-unsubscribe@freebsd.org"


--=20
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>



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