Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 237302 - lots of "$filename: no dev" messages when starting LiveCD
lots of "$filename: no dev" messages when starting LiveCD
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
Blocks: FC7Blocker
  Show dependency treegraph
Reported: 2007-04-20 13:52 EDT by Will Woods
Modified: 2007-11-30 17:12 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-18 17:06:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Please try this policy file to see if it fixes the problem (108 bytes, application/octet-stream)
2007-04-23 09:17 EDT, Daniel Walsh
no flags Details

  None (edit)
Description Will Woods 2007-04-20 13:52:45 EDT
When starting the current (20070419) LiveCD, a lot of messages saying (e.g.)

/var/lib/random-seed: no dev

appear on the console after readahead starts.
Comment 1 Jeremy Katz 2007-04-20 14:53:29 EDT
Happens on regular installs too.
Comment 2 Jeremy Katz 2007-04-20 15:02:36 EDT
I've commented out the fprintf so that it's at least not as annoying, but could
use looking to see why it's happening still.  But now just a release blocker and
not a test release blocker
Comment 3 Karel Zak 2007-04-23 07:51:32 EDT
The problem is selinux. I can't reproduce it with selinux=0. The readahead needs
to read /dev/root (and others partitions where are files from readahead lists).

  open("/dev/root", O_RDONLY)             = -1 EACCES (Permission denied)

Note: the readahead runs (on FC6) with system_u:system_r:readahead_t:s0

It seems the problem is pretty old (include FC6). Now it appears, because the
new version doesn't ignore the problem and reports it to stderr.

It's important fix the problem in selinux policy, because it has terrible impact
to readahead performace -- now (with selinux) the readahead can't read
information about FS blocks.

I don't know why, but I cannot found any avc messages about this issue in system

Comment 4 Daniel Walsh 2007-04-23 09:17:02 EDT
Created attachment 153279 [details]
Please try this policy file to see if it fixes the problem

Steps to build
Extract myreadahead.te to a local file, as root execute the following
# yum install selinux-policy-devel
# make -f /usr/share/selinux/devel/Makefile
# semodule myreadahead.pp

See if readahead works better.
Comment 5 Karel Zak 2007-04-25 17:34:12 EDT
It works for me. Please, submit the change to standard system policy. Thanks.
Comment 6 Daniel Walsh 2007-04-25 20:08:45 EDT
Already in selinux-policy-2.6.1-1.fc7
Comment 7 Jeremy Katz 2007-05-18 17:06:01 EDT
This okay to me now

Note You need to log in before you can comment on or make changes to this bug.