From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 9 14:35:31 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 348DF1065676 for ; Sat, 9 Jun 2012 14:35:31 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id E346D8FC1C for ; Sat, 9 Jun 2012 14:35:30 +0000 (UTC) Received: from [188.174.62.150] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SdMlF-0006Wq-Gy for freebsd-hackers@freebsd.org; Sat, 09 Jun 2012 16:35:29 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id q59EZR8S003971 for ; Sat, 9 Jun 2012 16:35:28 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id q59EZRgM003970 for freebsd-hackers@freebsd.org; Sat, 9 Jun 2012 16:35:27 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 9 Jun 2012 16:35:21 +0200 From: Matthias Apitz To: freebsd-hackers@freebsd.org Message-ID: <20120609143521.GA3940@tinyCurrent> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.62.150 Subject: cleaning /usr/obj before copying it to USB key X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2012 14:35:31 -0000 Hi, I build kernel and userland (out of SVN) and install in on an USB key mounted as /mnt this way: # cd /usr/src ... # make installworld DESTDIR=/mnt # make installkernel DESTDIR=/mnt KERNCONF=GENERIC INSTALL_NODEBUG=t # make distrib-dirs DESTDIR=/mnt # make distribution DESTDIR=/mnt To use the (booted) USB key later to install other laptops or netbooks I enrich the key with /usr/src and /usr/obj as: # cd /usr # cp -Rp src /mnt/usr # cp -Rp obj /mnt/usr Having done this I can use the key just to install the system on the laptop with the above DESTDIR=/mnt wherein /mnt is now the target root of the laptop; all this works just fine; my problem is that the both 'cp -Rp ...' commands takes many hours (12 and six hours) because they are transferring a lot(!!!) of small files; I have had a look into /usr/obj and it seems that after 'makeworld' and 'makekernel' there are left over a lot of temporary files from the build processes... is there a clean way to remove those files before 'cp -Rp obj /mnt/usr' while the result is still useful for another make install with DESTDIR=/mnt ? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5