From owner-freebsd-pkgbase@freebsd.org Sat Apr 11 15:52:26 2020 Return-Path: Delivered-To: freebsd-pkgbase@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1DF522BC72B for ; Sat, 11 Apr 2020 15:52:26 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48zzsj3FL5z3JfS for ; Sat, 11 Apr 2020 15:52:25 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id 03BFqNmr080821 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sat, 11 Apr 2020 15:52:23 GMT (envelope-from list1@gjunka.com) Subject: Re: /root on a separate dataset breaks FreeBSD-base installation To: Emmanuel Vadot Cc: freebsd-pkgbase@freebsd.org References: <97d9e8d2-faa8-f02a-6a8e-008056486c65@gjunka.com> <20200411171230.7a763370da92990c17aff4e1@bidouilliste.com> From: Grzegorz Junka Message-ID: <95f4cc8a-a4c2-cadb-f8c3-b0fed7df28c1@gjunka.com> Date: Sat, 11 Apr 2020 15:52:23 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200411171230.7a763370da92990c17aff4e1@bidouilliste.com> Content-Language: en-US X-Rspamd-Queue-Id: 48zzsj3FL5z3JfS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-4.84 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.980,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[gjunka.com]; URI_COUNT_ODD(1.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.56)[ip: (-9.34), ipnet: 88.98.192.0/18(-4.67), asn: 56478(-3.73), country: GB(-0.07)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2020 15:52:26 -0000 On 11/04/2020 15:12, Emmanuel Vadot wrote: > On Sat, 11 Apr 2020 12:39:30 +0000 > Grzegorz Junka 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