Zachary Kotlarek wrote: > On Jan 24, 2012, at 7:49 PM, Bryan Kadzban wrote: > >>> Why? Can't you mount the devtmpfs both with and without the >>> initramfs? >> Not if it's already mounted, unless you want to undo the >> modifications that udev has made (by putting a new mount on top), >> or make changes to the bootscripts (which is exactly what we're >> trying to avoid with this setup). :-) > > > Just don't run udev in the initramfs.
And give up LVM? udev is the only thing that creates /dev/<vg>/<lv> symlinks now; vgcreate does not touch /dev. (The LVM2 package installs a few udev rules to create the links for you. The underlying devmapper node remains at /dev/dm-X, but nothing uses that name.) > There are use cases for it, but I'd suggest devtmpfs or mdev as the > standard config. My initramfs works for LVM, dm-crypt, and md-based RAID, and I understand how it gets built (no magic happening, and therefore no way to break something without realizing it). Those two were sort of the whole point. (Though I have not yet gotten time to make it use devtmpfs. Shouldn't be hard; it already copies fstab from the host.) > Also note that the mountvirtfs script *already* checks to see if /dev > is mounted. And even if it didn't the change required to operate > correctly in both environments is a single-condition if statement. Still can't reliably swap out udevd. And since you can't do that, you might as well not bother moving the /dev mount either. Just recreate it.
signature.asc
Description: OpenPGP digital signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
