rpms/kexec-tools/devel mkdumprd2,1.1,1.2

Neil Horman nhorman at fedoraproject.org
Thu May 14 20:10:00 UTC 2009


Author: nhorman

Update of /cvs/extras/rpms/kexec-tools/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2302

Modified Files:
	mkdumprd2 
Log Message:
Adding more helpers for mkdumprd2


Index: mkdumprd2
===================================================================
RCS file: /cvs/extras/rpms/kexec-tools/devel/mkdumprd2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- mkdumprd2	13 May 2009 20:52:55 -0000	1.1
+++ mkdumprd2	14 May 2009 20:09:30 -0000	1.2
@@ -323,7 +323,10 @@ create_initramfs_image()
 	then
 		finish_and_exit 1 " Could not create initramfs"
 	fi
-	target=NEED TO PASS IN TARGET KERNEL HERE
+
+	# Get running kernel version to name the initramfs with
+	target=$(uname -r)
+	gzip -9 -c $IMG_FILE > initrd-$target.img
 }
 
 
@@ -331,6 +334,8 @@ create_initramfs_image()
 #Start the actual code here
 ##########################################################
 
+# Get our passed in options
+
 # Create a new staging area
 create_new_initramfs_dir
 if [ $? != 0 ]




More information about the scm-commits mailing list