]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh:get_devpath_block() make local vars local
authorHarald Hoyer <harald@redhat.com>
Tue, 27 Aug 2013 09:34:39 +0000 (11:34 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 27 Aug 2013 09:34:39 +0000 (11:34 +0200)
dracut-functions.sh

index 9b244190b7d419980c059c041be239d525934389..4c62d6b36827ffbf4a6b4ca60abadfa26f612687 100755 (executable)
@@ -300,7 +300,7 @@ get_maj_min() {
 # get_devpath_block <device>
 # get the DEVPATH in /sys of a block device
 get_devpath_block() {
-    local majmin i
+    local _majmin _i
     _majmin=$(get_maj_min "$1")
 
     for _i in /sys/block/*/dev /sys/block/*/*/dev; do