Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2020 12:39:30 +0000
From:      Grzegorz Junka <list1@gjunka.com>
To:        freebsd-pkgbase@freebsd.org
Subject:   /root on a separate dataset breaks FreeBSD-base installation
Message-ID:  <97d9e8d2-faa8-f02a-6a8e-008056486c65@gjunka.com>

next in thread | raw e-mail | index | archive | help
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.

Can I workaround with some option to pkg?

GrzegorzJ





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97d9e8d2-faa8-f02a-6a8e-008056486c65>