Bug 1477295 - [RFE] mkdir /lib/modules/${KernelVer}/systemtap/
[RFE] mkdir /lib/modules/${KernelVer}/systemtap/
Status: NEW
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
rawhide
All Linux
unspecified Severity low
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-01 12:32 EDT by Pat Riehecky
Modified: 2017-08-01 12:32 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Pat Riehecky 2017-08-01 12:32:23 EDT
Description of problem:
Can the Fedora kernel provide an empty /lib/modules/$(version)/systemtap/ ?

This is the default location for systemtap to pull in taps for stapusr executed scripts.  By making the directory systems admins will not need to first run mkdir across their infrastructure.

Version-Release number of selected component (if applicable):kernel-4.12.4-300.fc26


How reproducible:
100%

Steps to Reproduce:
1.look for existing location to put systemtap kernel modules
2.
3.

Actual results:
Must first make the directory

Expected results:
Directory already exists

Additional info:
Something like this would be fine with me.

--- kernel.spec.orig	2017-08-01 11:27:29.398944563 -0500
+++ kernel.spec	2017-08-01 11:29:58.105791659 -0500
@@ -1962,6 +1962,8 @@ popd
 make DESTDIR=$RPM_BUILD_ROOT bootwrapper_install WRAPPER_OBJDIR=%{_libdir}/kernel-wrapper WRAPPER_DTSDIR=%{_libdir}/kernel-wrapper/dts
 %endif
 
+%{__mkdir} %{buildroot}/lib/modules/$KernelVer/systemtap/
+
 ###
 ### clean
 ###
@@ -2211,6 +2213,7 @@ fi
 /lib/modules/%{KVERREL}%{?3:+%{3}}/build\
 /lib/modules/%{KVERREL}%{?3:+%{3}}/source\
 /lib/modules/%{KVERREL}%{?3:+%{3}}/updates\
+/lib/modules/%{KVERREL}%{?3:+%{3}}/systemtap\
 %if %{1}\
 /lib/modules/%{KVERREL}%{?3:+%{3}}/vdso\
 /etc/ld.so.conf.d/kernel-%{KVERREL}%{?3:+%{3}}.conf\

Note You need to log in before you can comment on or make changes to this bug.