Summary: | sys-fs/lvm2: depend() should pipe the output of lvm to /dev/null | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Väth <martin> |
Component: | [OLD] Core system | Assignee: | Doug Goldstein (RETIRED) <cardoe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | agk, gentoo-bugzilla, patrick, robbat2 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Martin Väth
2016-03-13 14:25:17 UTC
What version of lvm2 are you using? files/lvm.rc-2.02.105-r2 contains only this: depend() { before checkfs fsck after modules device-mapper need lvmetad sysfs } Crap, I realize there has been a regression; at some point a bad bump of the ebuild happened, and it's been installing that older init script again. lvm2-2.02.116-r5.ebuild: newinitd "${FILESDIR}"/lvmetad.initd-2.02.116-r3 lvmetad lvm2-2.02.136.ebuild: newinitd "${FILESDIR}"/lvmetad.initd-2.02.105-r2 lvmetad ... lvm2-2.02.145-r1.ebuild: newinitd "${FILESDIR}"/lvmetad.initd-2.02.105-r2 lvmetad lvm2-2.02.116-r2.ebuild: newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm lvm2-2.02.116-r4.ebuild: newinitd "${FILESDIR}"/lvm.rc-2.02.116-r4 lvm lvm2-2.02.116-r5.ebuild: newinitd "${FILESDIR}"/lvm.rc-2.02.116-r4 lvm lvm2-2.02.136.ebuild: newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm ... lvm2-2.02.145-r1.ebuild: newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm cardoe: You introduce this change, your call on how to change it. (In reply to Robin Johnson from comment #3) > cardoe: > You introduce this change, your call on how to change it. My plan was to drag the new init script (not to mention a few other bugs fixes that got dropped along the way) to all the existing versions. That's why I brought up culling the versions we don't want to ever go stable or support. But that's another story. I'll bump the script to add 2> /dev/null. The suggestions in comment 0 are unfortunately misguided. I would recommend reading the runscript man page. Thanks for the report. Fixed in http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d537027f4c66273bd05b9b9105f8fd1b5ab25f31 (In reply to Doug Goldstein from comment #4) > The suggestions in comment 0 are unfortunately misguided. [...] > I would recommend reading the runscript man page. I would have expected that you know that there is no such manpage. Certainly, openrc does nowhere recommend to make the dependency calculation dependent on currently running daemons: This is a straight route to breakage, because there are situations when the dependencies are calculated before anything else has started (e.g. if some /etc/init.d file was touched but after an unclean shutdown). I will locally avoid the problematic approach by INSTALL_MASK-ing the lvm2 init scripts. (In reply to Martin Väth from comment #6) > (In reply to Doug Goldstein from comment #4) > > The suggestions in comment 0 are unfortunately misguided. [...] > > I would recommend reading the runscript man page. > > I would have expected that you know that there is no such manpage. > Certainly, openrc does nowhere recommend to make the dependency calculation > dependent on currently running daemons: RUNSCRIPT(8) System Manager's Manual RUNSCRIPT(8) NAME runscript — a means of hooking shell commands into a service If you want the new name is "openrc-run", I recommend reading the EXAMPLE section. There is absolutely no dependency on running daemons. Its a generated dependency based on a configuration file. The command that is run is "lvm dumpconfig global" to get the parsed contents of /etc/lvm/lvm.conf. Unfortunately users have had multiple entries in /etc/lvm/lvm.conf and by running the "lvm dumpconfig global" command to parse the file and we take the same action that lvm will since we're using the lvm parsing code. > > This is a straight route to breakage, because there are situations when the > dependencies are calculated before anything else has started (e.g. if some > /etc/init.d file was touched but after an unclean shutdown). An unclean shutdown might result in warnings on boot. No news here. People having actual concrete problems when certain things are not started in the proper order is a real issue that this addresses. (In reply to Doug Goldstein from comment #7) > If you want the new name is "openrc-run" Thanks. You are right: The manpage was simply renamed in current stable openrc. > There is absolutely no dependency on running daemons. So "lvm dumpconfig global" works in case of a correct configuration correctly even if lvmd is not running yet.,, In this case, it is really strange that lvm prints a warning. Filtering this warning is indeed a good idea. Sorry for the noise. *** Bug 580408 has been marked as a duplicate of this bug. *** |