On Fri, 05 Aug 2011 13:55:39 -0500
Bruce Dubbs <bruce.du...@gmail.com> wrote:
> I've thought for a while that there should be a location that is 
> accessible across boots that is always available (not a mountpoint).
> It's a catch-22 though.  How do you mount / read only (for security) and 
> still be able to write this persistent data?  The clock/ntp data is only 
> one area.  Alsa and pci.ids/usb.ids are other areas of concern, although 
> they can certainly come after mountfs.   This data probably should be in 
> an optionally mountable /var partition.
> 
> For transient data, we now have /run.  That helps, but is not a complete 
> solution.
> 
> The first script to run is mountvirtfs.  Perhaps we could have that 
> create a /dev device like /dev/sda? and mount that as /var before udev 
> ever starts.

If you configure your kernel with CONFIG_DEVTMPFS_MOUNT=y the kernel
will mount a tmpfs on /dev itself and populate it with all the devices
it knows about. Xorg isn't happy to run without udev there to tell it
about input devices but I can boot to init 3 no problem _without_ udev
running; all the devices mentioned in /etc/fstab are there for mountfs
to work _before_ udev is run.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to