[LU-7722] Install/uninstall of Lustre RPMs is slow due to regenerating of initramfs Created: 28/Jan/16  Updated: 15/Dec/21

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Li Xi Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: patch

Issue Links:
Related
is related to LU-5614 use %kernel_module_package for weak-u... Closed
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

In the scripts of Lustre RPMS, weak-modules command is run. And in that command, dracut regenerates initramfs. Unfortunately, this process is very slow.

However, in most of cases, Lustre modules are not necessary for initramfs.
Thus, regenerating initramfs in scripts of RPMs is a waste of time, especailly for developers, since they need to install/uninstall RPMs frequently.



 Comments   
Comment by Gerrit Updater [ 28/Jan/16 ]

Li Xi (lixi@ddn.com) uploaded a new patch: http://review.whamcloud.com/18199
Subject: LU-7722 build: add --no-initramfs to weak-modules
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 9cb6357cca14ddfb19b05643266b4fd58d8c638d

Comment by Li Xi (Inactive) [ 28/Jan/16 ]

With the --no-initramfs, installing/uninstalling luster-module RPM speeds up a lot:
RPM Install Uninstall
--no-initramfs 6.852s 4.867s
Origin 2m48.694s 2m6.769s

Comment by Joseph Gmitter (Inactive) [ 28/Jan/16 ]

Hi Dmitry,
Can you have a look at this issue?
Thanks.
Joe

Generated at Sat Feb 10 02:11:21 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.