Updating mkdumprd2
This commit is contained in:
parent
5ee624fcf9
commit
5bb2d5f594
@ -57,6 +57,9 @@ function check_config()
|
||||
then
|
||||
$LOGGER "Using Kdump advanced configuration service"
|
||||
MKDUMPRD=/sbin/mkdumprd2
|
||||
# We always rebuild here, since it takes longer
|
||||
# to figure out if anything has changed
|
||||
touch /etc/kdump.conf
|
||||
else
|
||||
MKDUMPRD=/sbin/mkdumprd
|
||||
fi
|
||||
|
@ -34,6 +34,7 @@ do
|
||||
done
|
||||
|
||||
# make dash our default shell
|
||||
rm -f $STAGE_DIR/bin/sh
|
||||
$(cd $STAGE_DIR/bin; ln -s /bin/dash sh)
|
||||
|
||||
exit 0
|
||||
|
@ -263,6 +263,7 @@ done
|
||||
- Updated initscript to use mkdumprd2 if manifest is present
|
||||
- Updated spec to require dash
|
||||
- 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
|
||||
- Fixed mkdumprd2 tarball creation
|
||||
|
19
mkdumprd2
19
mkdumprd2
@ -311,9 +311,9 @@ create_initramfs_image()
|
||||
cleanup_and_exit 1 " Could not create initramfs"
|
||||
fi
|
||||
|
||||
# Get running kernel version to name the initramfs with
|
||||
target=$(uname -r)
|
||||
gzip -9 -c $IMG_FILE > ./initrd-$target.img
|
||||
# argument 1 is passed in and is the full path to the
|
||||
# output initramfs name
|
||||
gzip -9 -c $IMG_FILE > $1
|
||||
}
|
||||
|
||||
|
||||
@ -322,6 +322,17 @@ create_initramfs_image()
|
||||
##########################################################
|
||||
|
||||
# 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_env
|
||||
@ -341,7 +352,7 @@ prep_std_initramfs
|
||||
populate_from_manifest
|
||||
|
||||
# Do image file creation
|
||||
create_initramfs_image
|
||||
create_initramfs_image $INITRAMFS_NAME
|
||||
|
||||
# Cleanup
|
||||
cleanup_and_exit 0 ""
|
||||
|
Loading…
Reference in New Issue
Block a user