From: "Kristofer T. Karas" <ktk@enterprise.bidmc.harvard.edu>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, steve.cameron@hp.com
Subject: Re: How to identify contents of /lib/modules/*
Date: 17 Apr 2003 14:08:45 -0400 [thread overview]
Message-ID: <1050602925.21408.53.camel@pinhead> (raw)
In-Reply-To: <1050502898.28591.76.camel@dhcp22.swansea.linux.org.uk>
On Wed, 2003-04-16 at 10:21, Alan Cox wrote:
> if its an rpm based distro
> rpm -qf /lib/modules/[version]/something
> will tell you which kernel owns the file.
>
> Its a horrible thing to need to do however
I have a worse problem. :-) I often run several instances of the
identically version-numbered kernel, all available from the LILO boot
menu, each instance having a different .config or perhaps compiled with
a different gcc. If each instance wants to share
/lib/modules/[sameversion]/... then I've got a problem. Ditto for
userspace programs compiled against /usr/include/linux and
/usr/include/asm, where I want the compiled program to correspond very
closely with the currently running kernel. So...
I "fixed" this problem by creating /lib/modules/BootsAs/,
/usr/include/BootsAs/, etc. Then, rc.sysinit looks in /proc/cmdline to
figure out what I typed at LILO, greps through /etc/lilo.conf to find
the physical /boot/[xyzzy].vmlinux that was booted, and it creates
symlinks so /lib/modules/[sameversion] -> /lib/modules/BootsAs/[xyzzy]
and so on. This is also a win when you have several LILO targets that
point to the same kernel.
Kris -- running heavily hacked Slackware.
next prev parent reply other threads:[~2003-04-17 17:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-16 2:00 Stephen Cameron
2003-04-16 14:21 ` Alan Cox
2003-04-16 16:06 ` Dominik Kubla
2003-04-17 18:08 ` Kristofer T. Karas [this message]
2003-04-16 15:18 ` Arjan van de Ven
2003-04-16 17:08 ` Jeremy Jackson
2003-04-16 17:20 ` Paul Clements
2003-04-16 15:58 Cameron, Steve
2003-04-16 16:01 ` Alan Cox
2003-04-16 20:54 ` Henning P. Schmiedehausen
2003-04-16 18:57 Cameron, Steve
2003-04-17 20:02 Perez-Gonzalez, Inaky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1050602925.21408.53.camel@pinhead \
--to=ktk@enterprise.bidmc.harvard.edu \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=steve.cameron@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®