Bug 1477295 - [RFE] mkdir /lib/modules/${KernelVer}/systemtap/
Summary: [RFE] mkdir /lib/modules/${KernelVer}/systemtap/
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-01 16:32 UTC by Pat Riehecky
Modified: 2022-01-14 00:12 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2012908 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pat Riehecky 2017-08-01 16:32:23 UTC
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.