Bug 569274

Summary: staprun command not found in init script on boot
Product: [openSUSE] openSUSE 11.2 Reporter: Richard Ems <r.ems>
Component: BasesystemAssignee: Stephan Kulow <coolo>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: lweiss54, tonyj
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Richard Ems 2010-01-08 17:37:48 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20091222 SUSE/3.5.7-2.4 Firefox/3.5.7

While booting I can read on the screen or later in /var/log/boot.msg the error

/etc/init.d/boot.d/S01boot.startpreload: line 44: staprun: command not found

Line 44 reads
44               $cmd -o $preloadlog preloadtrace &

and line 34 defines cmd 
34            cmd=staprun

should this be cmd=/usr/bin/staprun ?


Reproducible: Always

Steps to Reproduce:
1. reboot and on startup watch the init script output or grep for staprun in /var/log/boot.*msg
Comment 1 Tony Jones 2010-01-13 19:53:40 UTC
I don't think this has anything to do with systemtap package. 

# rpm -qf /etc/init.d/boot.startpreload
preload-1.1-6.9.1.x86_64

staprun is packaged in 11.2 systemtap.spec as "%{_bindir}/staprun"

This said, I can't reproduce on my 11.2 system. grep staprun /var/log/boot.*msg yields no output. 

Please reassign to preload.
Comment 2 Stephan Kulow 2010-01-20 11:58:57 UTC
staprun is just a recommend, it's possible to install without and then you get this warning.
Comment 3 Richard Ems 2010-01-20 12:15:34 UTC
But staprun IS installed, and was installed by default on my system.

The problem is either the variable cmd not being set to the absolute path or /usr/bin not being in PATH.

And *for me* the message "command not found" is an error and not a warning.

Thanks,
Richard
Comment 4 Tony Jones 2010-01-20 17:31:40 UTC
What is happening now is a shell error as a result of 'cmd=staprun' ... '$cmd -o $preloadlog preloadtrace &' in /etc/init.d/boot.startpreload.   If it's supposed to be a warning, some checking logic should be employed to verify the existence of the executable.
Comment 5 len weiss 2010-02-16 02:02:23 UTC
While booting I can also read on the screen
/etc/init.d/boot.d/S01boot.startpreload: line 44: staprun: command not found

also I get 
udevd loading driver
acerhdf no aspire one hardware found. System just waits for a while??

staprun is in /usr/bin and /usr/bin is in PATH

I don't have either of these on another system.
The only thing that might be different is
one has / and /usr partitions and the error one has / /boot and usr

Len
Comment 6 Stephan Kulow 2010-03-22 11:39:15 UTC
fixed for 11.3 in disabling preload if /usr is on extra parition