On 11/04/2020 15:12, Emmanuel Vadot wrote:
On Sat, 11 Apr 2020 12:39:30 +0000
Grzegorz Junka <li...@gjunka.com> 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 ?
root@moon:~ # zfs list
NAME USED AVAIL REFER MOUNTPOINT
tank6 3.35G 25.9G 88K none
tank6/ROOT 1.89G 25.9G 88K none
tank6/ROOT/default 1.89G 25.9G 1.89G /
tank6/e 4.50M 25.9G 88K none
tank6/e/tmp 96K 25.9G 96K /tmp
tank6/e/var_db_pkg 4.32M 25.9G 4.32M /var/db/pkg
tank6/es 26.4M 25.9G 88K none
tank6/es/root 88K 25.9G 88K /root
tank6/es/usr_home 136K 25.9G 136K /usr/home
tank6/es/usr_local 26.1M 25.9G 26.1M /usr/local
tank6/j 88K 25.9G 88K /j
tank6/m 176K 25.9G 88K none
tank6/m/var_mail 88K 25.9G 88K /var/mail
tank6/t 88K 25.9G 88K none
tank6/var 1.38G 25.9G 1.38G /var
tank6/var/empty 88K 25.9G 88K /var/empty
tank6/var/tmp 88K 25.9G 88K /var/tmp
_______________________________________________
freebsd-pkgbase@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-pkgbase
To unsubscribe, send any mail to "freebsd-pkgbase-unsubscr...@freebsd.org"