On 01/08/2012 02:58 PM, Michael Weber wrote:
> Hi,
> 
> do you need udevd in runlevel boot at all (for sysvinit)?
> 
> Given either your kernel knows its root hardware device driver or has
> an initrd to load needed modules to mount the root filesystem.
> 
> You can have CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y and let the
> kernel create all the /dev/{sd,sr,hd}? device files needed for
> /etc/init.d/{fsck,bootmisc,localmount} to check and mount /usr.
> 
> Normally you can start udevd after localmount and just right before
> network, to persistent-network rename the interfaces.
> 
> On NFS_ROOT setups, you either have network by CONFIG_IP_PNP
> (kernel-level ip autoconfiguration) and get your root fs from the DHCP
> or you have an initrd which can mount /usr.
> 
> So, all you need udevd for is fancy-permissions/groups once a non-root
> plugs in an USB drive (which is an multiuser-nightmare by itself).
> 
> It should be sufficient to load udevd after localmount has mounted
> /usr udevd replays all the discoveries read from the kernel and
> applies the permission/ownership rules.
> 
> Concern is to sustain the freedom of choice that brought me to Gentoo.
> 
> Please provide systemd as an option.
> And provide sysvinit/openrc as an option.
> Do __not__ make an initrd mandatory.

In any case, you won't need an initramfs unless /usr is on a separate
partition. Assuming that /usr is mounted before init starts, doesn't it
make sense to start udevd as early as possible, before modules, before
lvm, and before localmount? If we start udevd after localmount as you
suggest, wouldn't that imply that we don't support modular kernels?
-- 
Thanks,
Zac

Reply via email to