Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jun 2012 16:35:21 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-hackers@freebsd.org
Subject:   cleaning /usr/obj before copying it to USB key
Message-ID:  <20120609143521.GA3940@tinyCurrent>

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

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 <guru@unixarea.de> - 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120609143521.GA3940>