On Fri, Dec 07, 2012 at 12:01:18PM -0500, Dave Reisner wrote: > > Ok, I didn't realize udev still was responsible for these links these > days, but perusing the code shows otherwise. Could you explain why > sulogin is wanted in the initramfs? Seems like an odd use case to me. > > > If in initrd the sulogin will be called after mounting /proc and /dev and running > > udev rules or enabling the links in initrd then the code does only check for existence > > of /proc and /dev. > > If you're in the initramfs, rootfs is tmpfs. Won't your statfs check > return a buffer which has f_type == TMPFS_MAGIC even if /dev is not > mounted? Hmmm ... maybe a check for RAMFS_MAGIC should be done before to distinguish between TMPFS_MAGIC or RAMFS_MAGIC for the initrd. Or the mounted /proc could be used to check for /dev Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html