]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
NBD: fix parsing of Debian-style nbdroot config
authorDavid Dillow <dave@thedillows.org>
Mon, 8 Jun 2009 04:25:20 +0000 (00:25 -0400)
committerDavid Dillow <dave@thedillows.org>
Mon, 8 Jun 2009 04:25:20 +0000 (00:25 -0400)
modules.d/95nbd/parse-nbdroot.sh

index 84d1c234def0e2b46d65929563a7f797b7dc5232..ba40207d6a55b26d12b92d6702853b32fac0387c 100755 (executable)
@@ -34,7 +34,7 @@ case "$root" in
     nbd:*,*)
        if check_occurances "$root" ',' 1 && check_occurances "$root" ':' 1;
        then
-           root=${root%*,}:${root#*,}
+           root=${root%,*}:${root#*,}
        fi
        ;;
 esac