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

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

On 11/04/2020 15:12, Emmanuel Vadot wrote:
> On Sat, 11 Apr 2020 12:39:30 +0000
> Grzegorz Junka <list1@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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?95f4cc8a-a4c2-cadb-f8c3-b0fed7df28c1>