[readonly/geninitrd/BUSYBOX: 5/113] - fix cramfs support (semitested)
draenog
draenog at pld-linux.org
Sat Nov 2 19:10:26 CET 2013
commit 06ac05d6d209e79c6466ec64a39f1d556ed41f5f
Author: Artur Frysiak <artur at frysiak.net>
Date: Tue Nov 14 14:47:45 2000 +0000
- fix cramfs support (semitested)
svn-id: @1157
geninitrd | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 6c4e745..30a8c89 100755
--- a/geninitrd
+++ b/geninitrd
@@ -182,7 +182,7 @@ while [ $# -gt 0 ]; do
--omit-ide-modules)
PROBEIDE="no";
;;
- --with-fs)
+ --fs)
if echo $1 | grep '=' >/dev/null ; then
FS=`echo $1 | sed 's/^--fs=//'`
else
@@ -207,6 +207,10 @@ while [ $# -gt 0 ]; do
shift
done
+if [ -z "$target" -o -z "$kernel" ]; then
+ usage
+fi
+
case "$FS" in
ext2)
if [ ! -x /sbin/losetup ]; then
@@ -232,10 +236,6 @@ case "$FS" in
;;
esac
-if [ -z "$target" -o -z "$kernel" ]; then
- usage
-fi
-
if [ -n "$img_vers" ]; then
target="$target-$kernel"
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/0999a53e93eedcf489380684b998ce04aaddf11c
More information about the pld-cvs-commit
mailing list