projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dd4370
)
dracut-functions.sh: skip comment lines in fstab
author
Harald Hoyer
<harald@redhat.com>
Wed, 28 Mar 2012 09:09:46 +0000
(11:09 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 28 Mar 2012 09:09:46 +0000
(11:09 +0200)
dracut-functions.sh
patch
|
blob
|
history
diff --git
a/dracut-functions.sh
b/dracut-functions.sh
index
8082466
..
8d31215
100755
(executable)
--- a/
dracut-functions.sh
+++ b/
dracut-functions.sh
@@
-257,6
+257,8
@@
find_block_device() {
fi
# fall back to /etc/fstab
while read _dev _mpt _fs _x; do
+ [ "${_dev%%#*}" != "$_dev" ] && continue
+
if [[ $_mpt = $1 ]]; then
[[ $_fs = nfs ]] && { echo $_dev; return 0;}
[[ $_fs = nfs3 ]] && { echo $_dev; return 0;}