Description of problem:
When booting with 'selinux=0' one sees this:
INIT: version 2.85 booting
cat: /proc/self/attr/current: Invalid argument
The culprit is that line:
if [ -n "$selinuxfs" -a "`cat /proc/self/attr/current`" != "kernel"
because 'test' is not short-circuiting '-a'. Replacing the above
if [ -n "$selinuxfs" ] && \
[ "`cat /proc/self/attr/current`" != "kernel" ]; then
will work as clearly intended.
Version-Release number of selected component (if applicable):
Looks similar to another FC Blocker bug:
121663 [NEW - normal - email@example.com] strange boot message when
rc.sysinit starts to run.
*** Bug 121663 has been marked as a duplicate of this bug. ***
Fixed, will be in 7.51-1, thanks!