Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463386 - sys-apps/systemd: Move "separate /usr" -postinst warning over from sys-fs/udev ebuild
Summary: sys-apps/systemd: Move "separate /usr" -postinst warning over from sys-fs/ude...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-26 17:39 UTC by Samuli Suominen (RETIRED)
Modified: 2014-05-04 17:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2013-03-26 17:39:52 UTC
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
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-03-26 17:44:22 UTC
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
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-26 19:31:45 UTC
Can you think of a way of displaying it only to users who don't have initramfs properly handled?
Comment 3 William Hubbs gentoo-dev 2013-03-26 20:42:45 UTC
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.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-26 20:59:29 UTC
Well, that's the problem. On the other hand, if it was only shown during the initial install, it could probably work.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-05-04 17:37:58 UTC
well, looks like this was no intrest to anyone, closing ->