Re: [PATCH] modules_install must not remove existing modules

From: Gene Heskett
Date: Wed Apr 05 2006 - 18:33:35 EST


On Wednesday 05 April 2006 17:52, Valdis.Kletnieks@xxxxxx wrote:
>On Wed, 05 Apr 2006 23:33:50 +0200, Andreas Gruenbacher said:
>> When installing external modules with `make modules_install', the
>> first thing that happens is a rm -rf of the target directory. This
>> works only once, and breaks when installing more than one (set of)
>> external module(s).
>
>Can this be re-worked to ensure that it clears the target directory
>the *first* time? It would suck mightily if a previous build of
> 2.6.17-rc2 left a net_foo.ko lying around to get insmod'ed by
> accident (consider the case of CONFIG_NETFOO=m getting changed to y
> or n, and other possible horkage. Module versioning will catch some,
> but not all, of this crap....)

I avoid this in my own makeit script by mv'ing all that stuff to
a /lib/modules/version_number.old, ditto for vmlinuz and initrd. That
way, if the new one doesn't work, I can choose some other kernel in the
grub startup, boot it it, then just mv the stuff back, and voila!
Another reboot and I'm back on the last kernel that worked.

--
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules. I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/