/sys mount (for 2.6)
Greg KH
greg at kroah.com
Fri Jan 30 23:14:23 UTC 2004
On Fri, Jan 30, 2004 at 12:25:34PM -0800, Pete Zaitcev wrote:
> Bill,
>
> do you have initscripts which mount /sys automatically? If yes, please
> send me an RPM version. So far all I tried didn't to it. This is what
> I have in /etc/rc.d/rc.sysinit currently:
>
> --- /mnt/alt/etc/rc.d/rc.sysinit.orig 2004-01-26 15:25:11.000000000 -0500
> +++ /mnt/alt/etc/rc.d/rc.sysinit 2004-01-26 18:06:37.000000000 -0500
> @@ -440,6 +440,12 @@
> fi
> fi
>
> +# Mount /sys for future scripts (such as ctc)
> +if grep -q "Linux version 2.6" /proc/version; then
> + echo "Mounting /sys"
> + mount -n -t sysfs none_sys /sys
> +fi
Shouldn't you just check for sysfs in /proc/filesystems instead? That
would be a bit safer for when we all move to 2.7 :)
thanks,
greg k-h
More information about the fedora-devel-list
mailing list