public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: William Cohen <wcohen@redhat.com>
To: prasad@linux.vnet.ibm.com
Cc: SystemTAP <systemtap@sources.redhat.com>
Subject: Re: Simple script to grab and install the appropriate kernel RPMs
Date: Tue, 04 Nov 2008 15:49:00 -0000	[thread overview]
Message-ID: <49106EB7.4060607@redhat.com> (raw)
In-Reply-To: <20081104024127.GA4038@in.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 1517 bytes --]

K.Prasad wrote:
> On Mon, Nov 03, 2008 at 02:13:48PM -0500, William Cohen wrote:
>> Hi All,
>>
>> In an effort to make it a bit easier to install systemtap on RHEL 
>> machines, I have made a small script to figure out which RPMs to install 
>> based either on the running kernel (no arguments to script) or the output 
>> of "uname -r" as an argument to the script. This script is only designed 
>> to work on RHEL. I would like to comments on it. The plan is to include 
>> this in the Systemtap beginners guide to make it easier for people to 
>> machine setup to run systemtap.
>>
> 
> Just thinking if the script mitigates the problem seen with PAE and smp
> versions of the kernel, wherein uname -r would contain the string PAE
> and smp, and the kernel package's name isn't a simple 'kernel-debuginfo'
> but a 'kernel-PAE-debuginfo'.
> 
> Thanks,
> K.Prasad
> 

Hi Prasad,

The is a for loop that checks for "debug kdump PAE xen" variants in the script 
and adjusts the name accordingly. It should catch the cases you are talking 
about. Let me know if it doesn't.

I have also updated the script so it only prints out the needed packages when 
run by a normal user (normal user can't do rpm install so why even try?). When 
run by root it will attempt to download the packages and install them.

I have attached the revised version of the script to this email. The script is 
also checked into the git repository in the documentation section:

  doc/SystemTap_Beginners_Guide/en-US /extras/stapprep.sh

-Will

[-- Attachment #2: stapprep.sh --]
[-- Type: application/x-sh, Size: 1279 bytes --]

  reply	other threads:[~2008-11-04 15:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03 19:14 William Cohen
2008-11-04  6:57 ` K.Prasad
2008-11-04 15:49   ` William Cohen [this message]
2008-11-04 15:44 ` David Smith
2008-11-04 15:58   ` William Cohen
2008-11-04 16:13     ` David Smith
2008-11-04 18:35       ` William Cohen

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=49106EB7.4060607@redhat.com \
    --to=wcohen@redhat.com \
    --cc=prasad@linux.vnet.ibm.com \
    --cc=systemtap@sources.redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).