Updating mkdumprd2

This commit is contained in:
Neil Horman 2009-07-06 18:39:28 +00:00
parent 5ee624fcf9
commit 5bb2d5f594
4 changed files with 20 additions and 4 deletions

View File

@ -57,6 +57,9 @@ function check_config()
then then
$LOGGER "Using Kdump advanced configuration service" $LOGGER "Using Kdump advanced configuration service"
MKDUMPRD=/sbin/mkdumprd2 MKDUMPRD=/sbin/mkdumprd2
# We always rebuild here, since it takes longer
# to figure out if anything has changed
touch /etc/kdump.conf
else else
MKDUMPRD=/sbin/mkdumprd MKDUMPRD=/sbin/mkdumprd
fi fi

View File

@ -34,6 +34,7 @@ do
done done
# make dash our default shell # make dash our default shell
rm -f $STAGE_DIR/bin/sh
$(cd $STAGE_DIR/bin; ln -s /bin/dash sh) $(cd $STAGE_DIR/bin; ln -s /bin/dash sh)
exit 0 exit 0

View File

@ -263,6 +263,7 @@ done
- Updated initscript to use mkdumprd2 if manifest is present - Updated initscript to use mkdumprd2 if manifest is present
- Updated spec to require dash - Updated spec to require dash
- Updated sample manifest to point to correct initscript - Updated sample manifest to point to correct initscript
- Updated populate_std_files helper to fix sh symlink
* Mon Jul 06 2009 Neil Horman <nhorman@redhat.com> 2.0.0-17 * Mon Jul 06 2009 Neil Horman <nhorman@redhat.com> 2.0.0-17
- Fixed mkdumprd2 tarball creation - Fixed mkdumprd2 tarball creation

View File

@ -311,9 +311,9 @@ create_initramfs_image()
cleanup_and_exit 1 " Could not create initramfs" cleanup_and_exit 1 " Could not create initramfs"
fi fi
# Get running kernel version to name the initramfs with # argument 1 is passed in and is the full path to the
target=$(uname -r) # output initramfs name
gzip -9 -c $IMG_FILE > ./initrd-$target.img gzip -9 -c $IMG_FILE > $1
} }
@ -322,6 +322,17 @@ create_initramfs_image()
########################################################## ##########################################################
# Get our passed in options # Get our passed in options
INITRAMFS_NAME=$1
#validate the options
if [ -z "INITRAMFS_NAME" ]
then
cleanup_and_exit 1 "Need an initramfs name"
fi
export INITRAMFS_NAME
export KERNEL_NAME
#setup working env #setup working env
setup_env setup_env
@ -341,7 +352,7 @@ prep_std_initramfs
populate_from_manifest populate_from_manifest
# Do image file creation # Do image file creation
create_initramfs_image create_initramfs_image $INITRAMFS_NAME
# Cleanup # Cleanup
cleanup_and_exit 0 "" cleanup_and_exit 0 ""