From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 00:15:37 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 84D3EC6A for ; Wed, 31 Dec 2014 00:15:37 +0000 (UTC) Received: from skeleton.phys.spbu.ru (skeleton.phys.spbu.ru [195.19.241.202]) by mx1.freebsd.org (Postfix) with ESMTP id E8A24247C for ; Wed, 31 Dec 2014 00:15:36 +0000 (UTC) Received: from skeleton.phys.spbu.ru (localhost [127.0.0.1]) by skeleton.phys.spbu.ru (Postfix) with ESMTP id 2910CB68EF for ; Wed, 31 Dec 2014 04:07:30 +0400 (MSK) Received: from laura.ws.pu.ru (laura [172.27.209.137]) by skeleton.phys.spbu.ru (Postfix) with ESMTP id D87B2B68EE for ; Wed, 31 Dec 2014 04:07:29 +0400 (MSK) Date: Wed, 31 Dec 2014 03:07:29 +0300 From: Dima Veselov To: freebsd-questions@freebsd.org Subject: Distributing upgrades to remote host Message-ID: <20141231000729.GA4390@laura.ws.pu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: St.Petersburg State University User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 00:15:37 -0000 Hello! I spent few hours on the internet and still stuck in simple problem. I have amd64 host on FreeBSD 10-STABLE and wish it will be able to build worlds for sparc64 hosts. Targets are weak and busy, so I don't want them to do much job or have much storage. What is the right way to make proper upgrade for remote hosts? I say proper, because I wish target host behave like build host (mergemaster, make installworld and so on). What I did and this don't work (not sure I understand everything): 1. I have built different objdir MAKEOBJDIRPREFIX=/usr/obj-sparc64/ make buildworld TARGET=sparc64 On target I got it syncronized (what is quite weird to do on long distance) to the nearest NFS server. 2. Target won't take NFS path like /net/nfsserver/export/freebsd-src because of different path treat 3. If I mount NFS in /usr/obj (what is strange) - target won't take 'make' command due to amd64 tools in obj 4. I issued make distributeworld DISTDIR=/export/freebsd-sparc64, but don't understand clear way to populate system properly with it. In NetBSD I would simply build distributions sets, unpack everything except etc.tgz and finished with etcupdate -s etc.tgz. This will work except deletion of old binaries, what is not supported for whole platform. I beleive there are simple and fast way to populate remote hosts with fresh cross-compiled binaries, but don't have a guess. Thank you very much in advance. -- Sincerely yours