logo       

Re: Kernel RPM Question: msg#01681

Subject: Re: Kernel RPM Question
> On Tue, 30 Dec 2003 linuxproject@xxxxxxxxxx wrote:
>
>>    First off I would like to say how much I enjoy Fedora, and I
>> think it is an awesome distro. The question I have is, how exactly
>> do you configure the kernel to work on other machines in the rpm.
>
> Take a peek at the runtime scripts:
>
>   rpm -q --scripts kernel # kernel-smp, if necessary
>
> In particular, you'll be interested in the postinstall scriptlet.
>
> --Paul Heinlein <heinlein@xxxxxxxxxx>
>
>
> --
> fedora-devel-list mailing list
> fedora-devel-list@xxxxxxxxxx
> http://www.redhat.com/mailman/listinfo/fedora-devel-list
>
Ok, I ran rpm =q --scripts kernel and this is what it came up with for the
postinstall scriptlet:

postinstall scriptlet (using /bin/sh):
cd /boot
ln -sf vmlinuz-2.4.22-1.2135.nptl vmlinuz
ln -sf System.map-2.4.22-1.2135.nptl System.map
[ -x /usr/sbin/module_upgrade ] && /usr/sbin/module_upgrade
[ -x /sbin/mkkerneldoth ] && /sbin/mkkerneldoth
[ -x /sbin/new-kernel-pkg ] && /sbin/new-kernel-pkg --mkinitrd --depmod
--install 2.4.22-1.2135.nptl

>From what I understand, this changes directory to /boot, then create some
type of link (symbolic?) from vmlinuz-2.4.22-1.2135.nptl to vmlinuz and
the same for System.map, then it upgrades the modules, and I'm not sure
waht mkkernewldoth does, and then the new-kernel-pkg is what creates the
initrd image and runs depmod to look for dependencies and finally installs
the new kernel. However, I'm still not quite sure of how you setup your
kernel that is used on the install cds during the installation to work on
different machines. This scriptlet shows how it is installed, but I am
mainly wondering how kernel is setup to be so versatile that it will work
on different systems.
Thanks,

Casey Price


--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-devel-list



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe