cleaning /usr/obj before copying it to USB key
Matthias Apitz
guru at unixarea.de
Sat Jun 9 14:35:31 UTC 2012
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 at 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
More information about the freebsd-hackers
mailing list