Bug 1331541

Summary: RFE: Potentially long running hook scripts of kernel RPMs should say something
Product: [Fedora] Fedora Reporter: Matthew Cline <matt>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-26 19:15:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Matthew Cline 2016-04-28 18:15:45 UTC
Some of the postinstall and postuninstall script hooks in kernel RPMs (like depmod) can take a long time, leading one (or at least leading me) to wonder "what's taking so long".  These scripts should echo out something like "doing depmod, this might take a while..."

Comment 1 Josh Boyer 2016-04-28 19:05:44 UTC
How long do you see this taking?  On a relatively slow machine with a spinning rust drive and a kernel with full debugging enabled, it takes 20 seconds.  On an x1 with an SSD, it takes 5s.

While I understand your reasoning, output to the terminal or console from an RPM scriptlet has always been discouraged.  It breaks the output of yum/dnf and typically we get a bug filed to remove it or redirect it to /dev/null if it exists.