Bug 183917 - [FEAT] allow updating of kernel args in new-kernel-pkg
Summary: [FEAT] allow updating of kernel args in new-kernel-pkg
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-03 18:23 UTC by Don Zickus
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 5.0.33-1
Clone Of:
Environment:
Last Closed: 2006-03-30 23:19:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
my proposed patch (2.64 KB, patch)
2006-03-03 18:23 UTC, Don Zickus
no flags Details | Diff

Description Don Zickus 2006-03-03 18:23:12 UTC
Created attachment 125609 [details]
my proposed patch

Comment 1 Don Zickus 2006-03-03 18:23:12 UTC
Description of problem:
This is realated to the whole kdump thing.  

After installing/uninstalling a kdump kernel, we need a way to add/remove
arguments to the normal kernel.  An example:

%post kdump
[ ! -x /usr/sbin/module_upgrade ] || /usr/sbin/module_upgrade
%{rpmversion}-%{release}-kdump
/sbin/new-kernel-pkg --package kernel-kdump --mkinitrd --depmod --install
%{KVERREL}kdump
+/sbin/new-kernel-pkg --args="crashkernel=64M@16M" --update %{KVERREL}

(notice the missing kdump after %{KVERREL})
This is needed to allow the first kernel to create a memory hole (given as the
argument) in which to place the second kernel (and initrd) into.  Of course the
machine still needs to be rebooted to utilize this new parameter, *sigh* (a
hurdle for another day).  

In addition this would allow us to do the opposite upon uninstalling (%post-un):

+/sbin/new-kernel-pkg --remove-args="crashkernel=64M@16M" --update %{KVERREL}

That is the crux of the problem.  I have attached a patch against
new-kernel-pkg, which solves the problem in one way, but I leave you to be the
judge of what is the most appropriate way.  



Version-Release number of selected component (if applicable):
mkinitrd-5.0.29

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Peter Jones 2006-03-30 23:19:19 UTC
Thanks for the patch.  This is in 5.0.33-1 , which should be in tomorrow's rawhide.


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