]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
- check for /boot mount (is this ppc compatible?)
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 5 Nov 2007 21:09:45 +0000 (21:09 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 5 Nov 2007 21:09:45 +0000 (21:09 +0000)
svn-id: @8994

geninitrd

index 587c5deb90991ae7be5a30d8d4c7b43820041549..f108205dfd783d5cdc411604a32a7c77d814c4eb 100755 (executable)
--- 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)}'`"
 
This page took 0.043504 seconds and 4 git commands to generate.