kernel && SVN rev. number in 'uname -a'
Matthias Apitz
guru at unixarea.de
Mon Oct 12 12:03:55 UTC 2009
Hello,
I've build a kernel based on SVN checkout of head and compiled/installed
the kernel with:
# cd /usr
# rm -rf src
# svn co svn://....
# cd /usr/src
# make buildkernel KERNCONF=GENERIC
# make installkernel KERNCONF=GENERIC
# shutdown -r now
the booting kernel says:
$ uname -a
FreeBSD vm-azul.Sisis.de 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r197801: Mon
Oct 12 13:33:32 CEST 2009 guru at vm-azul.Sisis.de:/usr/obj/usr/src/sys/GENERIC i386
i.e. does contain the SVN rev. number r197801, so far so good: when I
now move the /usr/src to some other machine with:
# cd /usr
# tar cf src.tar src
...
# cd /usr
# rm -rf src
# tar --unlink -xpf src.tar
and build the kernel there exact the same way as on the originating
machine, the output of 'uname -a' does not contain the SVN revision
number. Any idea why is that? 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/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
More information about the freebsd-current
mailing list