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:
9883643
)
base/dracut-lib.sh: check for /proc/cmdline existance
author
Harald Hoyer
<harald@redhat.com>
Tue, 30 Jul 2013 13:14:59 +0000
(15:14 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Tue, 30 Jul 2013 13:28:46 +0000
(15:28 +0200)
modules.d/99base/dracut-lib.sh
patch
|
blob
|
history
diff --git
a/modules.d/99base/dracut-lib.sh
b/modules.d/99base/dracut-lib.sh
index
2361ee3
..
9e49a9c
100755
(executable)
--- a/
modules.d/99base/dracut-lib.sh
+++ b/
modules.d/99base/dracut-lib.sh
@@
-77,8
+77,10
@@
_getcmdline() {
CMDLINE_ETC_D="$CMDLINE_ETC_D $_line";
done <"$_i";
done
- read -r CMDLINE </proc/cmdline;
- CMDLINE="$CMDLINE_ETC_D $CMDLINE_ETC $CMDLINE"
+ if [ -e /proc/cmdline ]; then
+ read -r CMDLINE </proc/cmdline;
+ CMDLINE="$CMDLINE_ETC_D $CMDLINE_ETC $CMDLINE"
+ fi
fi
}