From owner-freebsd-pkgbase@freebsd.org Sat Apr 11 15:12:35 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 5AB112BB9D6 for ; Sat, 11 Apr 2020 15:12:35 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48zyzk2Rvkz3G9B for ; Sat, 11 Apr 2020 15:12:34 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1586617952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XuMAVa8/4GCYUqitAEbMRcQaTA6QWcNqCwD7hcxlnG8=; b=fn/IlBzZwqXFMw0DsDgCYVn2avvDWDJxdpj5JUlqEFT7GUK3NnGeduzeS1oiXZXi7Ff0hw 5orC3CoIR7o3OcndF1qL9QxqbqOyv2Q0TXd5ogZIGoZTauL3RYTfFfumka8enqEdGDO3bK 8Kk8Xk2sIHdlCM/tWhf+yCVjUzAWtbU= Received: from skull.home.blih.net (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id d03787d7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 11 Apr 2020 15:12:32 +0000 (UTC) Date: Sat, 11 Apr 2020 17:12:30 +0200 From: Emmanuel Vadot To: Grzegorz Junka Cc: freebsd-pkgbase@freebsd.org Subject: Re: /root on a separate dataset breaks FreeBSD-base installation Message-Id: <20200411171230.7a763370da92990c17aff4e1@bidouilliste.com> In-Reply-To: <97d9e8d2-faa8-f02a-6a8e-008056486c65@gjunka.com> References: <97d9e8d2-faa8-f02a-6a8e-008056486c65@gjunka.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48zyzk2Rvkz3G9B X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=fn/IlBzZ; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.85 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.35)[ip: (-9.09), ipnet: 212.83.128.0/19(1.92), asn: 12876(0.43), country: FR(0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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:12:35 -0000 On Sat, 11 Apr 2020 12:39:30 +0000 Grzegorz Junka wrote: > I am following https://wiki.freebsd.org/PkgBase >=20 > This: >=20 > pkg install -g 'FreeBSD-*' >=20 > fails with this: >=20 > [2/800] Extracting FreeBSD-runtime-12.1_3:=A0=A0 4% > pkg: Fail to create hardlink:=20 > /root/.pkgtemp..cshrc.v5sxGCRu3GlP:Cross-device link > [2/800] Extracting FreeBSD-runtime-12.1_3: 100% >=20 > /root is in a different ZFS dataset. It works fine if it's not. Why pkg=20 > is using /root/.pkgtemp instead of /tmp or /var/tmp? It doesn't matter=20 > 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? >=20 > GrzegorzJ >=20 >=20 > _______________________________________________ > freebsd-pkgbase@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-pkgbase > To unsubscribe, send any mail to "freebsd-pkgbase-unsubscribe@freebsd.org" --=20 Emmanuel Vadot