This is from udev-198-r6's pkg_postinst() which I'm about to remove because it's not really accurate anymore since udev is installed to / instead of /usr It's only confusing users at the moment in udev's ebuild I'm filing this bug if you are intrested in modifying it with s/udev/systemd/ and re-using it in your ebuild, if you don't want it, that's fine too, close this as wontfix then :-) if ismounted /usr; then ewarn ewarn "Your system has /usr on a separate partition. This means" ewarn "you will need to use an initramfs to pre-mount /usr before" ewarn "udev runs." ewarn ewarn "If this is not set up before your next reboot, udev may work;" ewarn "However, you also may experience failures which are very" ewarn "difficult to troubleshoot." ewarn ewarn "For a more detailed explanation, see the following URL:" ewarn "http://www.freedesktop.org/wiki/Software/systemd/separate-usr-is-broken" ewarn ewarn "For more information on setting up an initramfs, see the" ewarn "following URL:" ewarn "http://www.gentoo.org/doc/en/initramfs-guide.xml" fi
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-9999.ebuild?r1=1.207&r2=1.208 the ismounted() function was loaned from dracut
Can you think of a way of displaying it only to users who don't have initramfs properly handled?
The ismounted() function returns true if /usr is a separate file system. Testing further would mean you would have to look in their boot loader config to see if they have an initramfs set up, but even then you don't really know because you would have to look inside the initramfs to see if it mounts /usr.
Well, that's the problem. On the other hand, if it was only shown during the initial install, it could probably work.
well, looks like this was no intrest to anyone, closing ->