[readonly/geninitrd: 511/1068] - check for /boot mount (is this ppc compatible?)

draenog draenog at pld-linux.org
Sat Nov 2 19:55:21 CET 2013


commit 130aadc120245406769c7d28375fd1bd29101595
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Nov 5 21:09:45 2007 +0000

    - check for /boot mount (is this ppc compatible?)
    
    svn-id: @8994

 geninitrd | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/geninitrd b/geninitrd
index 587c5de..f108205 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1544,6 +1544,10 @@ if [ -z "$target" -o -z "$kernel" ]; then
 	usage
 fi
 
+if [ ! -f /boot/vmlinuz-"$kernel" ]; then
+	die "/boot/vmlinuz-$kernel doesn't exist, is your /boot mounted?"
+fi
+
 pack_version="`echo "$kernel"|awk -F. '{print sprintf("%03d%03d",$1,$2)}'`"
 pack_version_long="`echo "$kernel"|awk -F. '{print sprintf("%03d%03d%03d",$1,$2,$3)}'`"
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090



More information about the pld-cvs-commit mailing list