Chris Jones writes:
> I'm having a couple of problems with devfs:
>
> 1) When I shut my machine down (Red Hat 7.1 with 2.4.9 kernel) it
> complains that /dev is busy and can't be unmounted. I assume this is
> because things like init still have some stuff from /dev still mounted.
> Is it ok for /dev to still be mounted when the machine reboots?
Yep. Doesn't matter. If you grab a recent util-linux, you'll find that
that annoying error message will go away. At least, I think I sent
Andries a patch for that...
> 2) I'm pretty sure I've configured devfs to correctly handle
> ownership/permissions across reboots by use of /var/state/devfs, I
> can chmod/chown something in /dev and the /var/state/devfs
> equivalent is updated to have the correct details, but when I reboot
> the permissions change quite a lot, with a number of devices
> (e.g. v4l ones) having ownership cmsj.root (cmsj being my
> user). There is definitely nothing in any of the boot scripts
> changing these permissions.
It's not clear what the problem is. Sure, when you reboot, the default
permissions will change. Is something being change that you think
shouldn't?
Or is something not being changed that you think should?
> Attached is my devfsd.conf, is there anything else I should send to help
> track this down?
>
> # Uncomment this if you want permissions to be saved and restored
> REGISTER ^pt[sy]/.* IGNORE
> CHANGE ^pt[sy]/.* IGNORE
> REGISTER .* COPY /var/state/devfs/$devname $devpath
> CHANGE .* COPY $devpath /var/state/devfs/$devname
> CREATE .* COPY $devpath /var/state/devfs/$devname
Looks reasonable to me.
Regards,
Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current: rgooch@xxxxxxxxxxxxxxx
|