Re: installing kernel.org kernels



On Thursday 30 November 2006 07:52, Dave Jones wrote:
On Thu, Nov 30, 2006 at 07:43:07AM -0500, Gene Heskett wrote:
2. Trying to do this as a user rather than root because you all
decry my running everything as root. To that end I have broken
my 'makeit' script in two, doing all the building as myself and
leaving the installation to a separate script that must be run as
root. This seems to work, but is there a way to run as the
common user and still have rights to install the modules in
/lib/modules/$kernelver, and to install the pieces and links in
/boot that are required to achieve a working boot?

sudo ?

For another 30+ lines of script? I'd have to study up on wrapping
that one up correctly.

sudo make modules_install
sudo make install

That's all you need to do.

Don't forget sudo mkinitrd, it won't run unless by root. :)

Side comment here. I know my present .config is probably building
quite a few more modules that I don't need since I started with a
make oldconfig, but can that explain why a kernel build that a month
ago on gcc-3.3.4 took 10 to 11 minutes, it now taking nearly 30
minutes to do with this newer compiler suite FC6 installs?

A big time saver when building your own kernels is to make sure
CONFIG_DEBUG_INFO is disabled.

It is disabled AFAIK

This speeds up the linking stage
considerably. Another big performance win (for recompiles) is to use
ccache.

My script starts with a make clean for correctness. How would/does ccache
work?
Dave

Thanks Dave.

--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
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.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages