On Sat, 11 Apr 2020 12:39:30 +0000
Grzegorz Junka <[email protected]> wrote:

> I am following https://wiki.freebsd.org/PkgBase
> 
> This:
> 
> pkg install -g 'FreeBSD-*'
> 
> fails with this:
> 
> [2/800] Extracting FreeBSD-runtime-12.1_3:   4%
> pkg: Fail to create hardlink: 
> /root/.pkgtemp..cshrc.v5sxGCRu3GlP:Cross-device link
> [2/800] Extracting FreeBSD-runtime-12.1_3: 100%
> 
> /root is in a different ZFS dataset. It works fine if it's not. Why pkg 
> is using /root/.pkgtemp instead of /tmp or /var/tmp? It doesn't matter 
> 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?
> 
> GrzegorzJ
> 
> 
> _______________________________________________
> [email protected] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-pkgbase
> To unsubscribe, send any mail to "[email protected]"


-- 
Emmanuel Vadot <[email protected]> <[email protected]>
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-pkgbase
To unsubscribe, send any mail to "[email protected]"

Reply via email to