rpms/kexec-tools/devel/kdump_build_helpers populate_kdump_std_files, NONE, 1.1 generate_module_list, 1.2, 1.3
Neil Horman
nhorman at fedoraproject.org
Mon May 18 01:17:12 UTC 2009
Author: nhorman
Update of /cvs/extras/rpms/kexec-tools/devel/kdump_build_helpers
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26388/kdump_build_helpers
Modified Files:
generate_module_list
Added Files:
populate_kdump_std_files
Log Message:
Adding functionality to mkdumprd2
--- NEW FILE populate_kdump_std_files ---
#!/bin/sh
. /etc/kdump-adv-conf/mkdumprd2_functions
STAGE_DIR=$1/stage
# We of course need busybox
install_with_deps /sbin/busybox 755
# And we need to link all the apps busybox provides in
for i in `/sbin/busybox |
awk 'BEGIN {found=0} /.*/ { if (found) print $0 } /Currently/ {found=1}' |
sed -e's/,//g' -e's/busybox//g'`
do
ln -s busybox $STAGE_DIR/sbin/$i
done
# We always get kpartx, dmsetup, lvm and mdadm
for i in /sbin/lvm /sbin/kpartx /sbin/mdadm /sbin/dmsetup
do
install_with_deps $i 755
done
# We also want to suck in all the runtime scripts
# that make life easier inside the initramfs
# These don't need deps, because they're all msh scripts
for i in `ls /etc/kdump-adv-conf/kdump_build_helpers/`
do
if [ -f $i ]
then
install --mode=755 $i $STAGE_DIR/bin
fi
done
exit 0
Index: generate_module_list
===================================================================
RCS file: /cvs/extras/rpms/kexec-tools/devel/kdump_build_helpers/generate_module_list,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- generate_module_list 15 May 2009 20:23:55 -0000 1.2
+++ generate_module_list 18 May 2009 01:16:41 -0000 1.3
@@ -14,7 +14,7 @@ do
do
bname=$(basename $j)
cp $j $STAGE_DIR/modules
- grep -q $bname $STAGE_DIR/modules 2>/dev/null
+ grep -q $bname $STAGE_DIR/etc/module_load_list 2>/dev/null
# Add the module to the list if its not already there
# or if the list doesn't yet exist
More information about the scm-commits
mailing list