add rhcrashkernel-param.sh for anaconda use

Resolves: 707441

Provide a script rhcrashkernel-param.sh to generate cmdline, so anaconda can just
call it, we can easily add more logic into this script later.

Note: Currently for fedora only adding null output for testing purpose.

Signed-off-by: Dave Young <dyoung@redhat.com>
Suggested-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Dave Young 2012-05-11 14:29:53 +08:00
parent 70dbef8656
commit ca94c80a91
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@ Source13: kexec-tools-po.tar.gz
Source14: 98-kexec.rules
Source15: kdump.conf.5
Source16: kdump.service
Source17: rhcrashkernel-param.sh
#######################################
# These are sources for mkdumpramfs
@ -149,6 +150,8 @@ install -m 644 %{SOURCE12} $RPM_BUILD_ROOT%{_mandir}/man8/mkdumprd.8
install -m 644 %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/98-kexec.rules
install -m 644 %{SOURCE15} $RPM_BUILD_ROOT%{_mandir}/man5/kdump.conf.5
install -m 644 %{SOURCE16} $RPM_BUILD_ROOT%{_unitdir}/kdump.service
mkdir -p $RPM_BUILD_ROOT/usr/sbin
install -m 755 %{SOURCE17} $RPM_BUILD_ROOT/usr/sbin/rhcrashkernel-param.sh
%ifarch %{ix86} x86_64 ia64 ppc64
install -m 755 makedumpfile-1.4.2/makedumpfile $RPM_BUILD_ROOT/sbin/makedumpfile
@ -274,6 +277,7 @@ done
%files -f %{name}.lang
/sbin/*
/usr/sbin/*
%{_bindir}/*
%{_datadir}/kdump
%config(noreplace,missingok) %{_sysconfdir}/sysconfig/kdump

2
rhcrashkernel-param.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
echo -n