fixed -c parameter handling and Makefile
authorHarald Hoyer <harald@redhat.com>
Sat, 7 Mar 2009 11:06:17 +0000 (12:06 +0100)
committerHarald Hoyer <harald@redhat.com>
Sat, 7 Mar 2009 11:06:17 +0000 (12:06 +0100)
Makefile
dracut

index a40b8ee..2158448 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,5 +31,5 @@ rpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2
        rm -fr BUILD BUILDROOT
 
 testimage: all
-       ./dracut -l -f test-$(shell uname -r).img $(shell uname -r)
+       ./dracut -l -c ./dracut.conf -f test-$(shell uname -r).img $(shell uname -r)
        @echo wrote  test-$(shell uname -r).img 
diff --git a/dracut b/dracut
index dad6687..2bebabe 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -16,7 +16,7 @@ while (($# > 0)); do
        -h|--help) echo "Usage: $0 [-f] <initramfs> <kernel-version>"
            exit 1 ;;
        -v|--verbose) set -x;;
-       -c|--conf) conffile="$2" ;;
+       -c|--conf) conffile="$2"; shift;;
        -l|--local) allowlocal="yes" ;;
        --allow-missing) : ;;
        *) break ;;