Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-25 Thread Khem Raj
On Sun, Feb 24, 2013 at 2:37 AM, Ross Burton wrote: > Hi, > > Just brainstorming out loud, but here's a suggestion that might just please > everyone: > > A virtual provider for the init manager, which can be overridden per-image > (for main / rescue images). Yes I was thinking about it too but

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-25 Thread Otavio Salvador
On Sun, Feb 24, 2013 at 7:04 PM, Ross Burton wrote: > On Sunday, 24 February 2013 at 14:06, Otavio Salvador wrote: >> > DISTRO_FEATURES contains the init script *style* that you want: sysvinit >> > or systemd. These are not mutually exclusive so specifying both will get >> > you both directly in

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-25 Thread Enrico Scholz
Ross Burton writes: > the source, so enabling systemd may well lead to libsystemd-* libraries > sneaking into your rescue image. for socket activation and sd_notify(), only libsystemd-daemon is required which is -rwxr-xr-x1 root root 11644 Feb 25 09:27 /lib/libsystemd-daemon.so

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-25 Thread Enrico Scholz
Khem Raj writes: >> > On the specifics of the do_install_append, you've seen my comments about >> > how we're not learning from past mistakes with the way the do_install in >> > the class was written. I note Phil also agreed with them, both of us >> > remembering some of the horrors we've dealt w

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-24 Thread Andreas Müller
On Sun, Feb 24, 2013 at 11:04 PM, Ross Burton wrote: >> The size impact it not negligible; specially for initramfs images but >> what concerns me even more is the upgrade path from previous users of >> meta-oe systemd. > > > I obviously didn't make myself clear - the size impact is negligible when

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-24 Thread Martin Jansa
On Sun, Feb 24, 2013 at 10:04:42PM +, Ross Burton wrote: > On Sunday, 24 February 2013 at 14:06, Otavio Salvador wrote: > > > DISTRO_FEATURES contains the init script *style* that you want: sysvinit > > > or systemd. These are not mutually exclusive so specifying both will get > > > you both

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-24 Thread Ross Burton
On Sunday, 24 February 2013 at 14:06, Otavio Salvador wrote: > > DISTRO_FEATURES contains the init script *style* that you want: sysvinit or > > systemd. These are not mutually exclusive so specifying both will get you > > both directly in packages that support both. I'm still not convinced we >

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-24 Thread Otavio Salvador
On Sun, Feb 24, 2013 at 5:50 AM, Khem Raj wrote: > On (16/02/13 11:41), Otavio Salvador wrote: >> On Sat, Feb 16, 2013 at 10:53 AM, Richard Purdie >> wrote: >> > On Sat, 2013-02-16 at 08:47 -0200, Otavio Salvador wrote: >> >> On Sat, Feb 16, 2013 at 7:15 AM, Richard Purdie >> >> wrote: >> >> > O

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-24 Thread Otavio Salvador
On Sun, Feb 24, 2013 at 7:37 AM, Ross Burton wrote: > Hi, > > Just brainstorming out loud, but here's a suggestion that might just please > everyone: > > A virtual provider for the init manager, which can be overridden per-image > (for main / rescue images). > > DISTRO_FEATURES contains the init

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-24 Thread Ross Burton
On Sunday, 24 February 2013 at 10:37, Ross Burton wrote: > Here's the fun bit - we can't have two builds of udev in the same distro, and > that's what could happen, so I think we'll need to cut down to one udev > instead of two. Ignore this, we can continue to key off the systemd distro feature

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-24 Thread Ross Burton
Hi, Just brainstorming out loud, but here's a suggestion that might just please everyone: A virtual provider for the init manager, which can be overridden per-image (for main / rescue images). DISTRO_FEATURES contains the init script *style* that you want: sysvinit or systemd. These are not

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-24 Thread Khem Raj
On (16/02/13 11:41), Otavio Salvador wrote: > On Sat, Feb 16, 2013 at 10:53 AM, Richard Purdie > wrote: > > On Sat, 2013-02-16 at 08:47 -0200, Otavio Salvador wrote: > >> On Sat, Feb 16, 2013 at 7:15 AM, Richard Purdie > >> wrote: > >> > On Fri, 2013-02-15 at 19:19 +0100, Enrico Scholz wrote: > >

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-21 Thread Enrico Scholz
"Burton, Ross" writes: > "With recent systemd packaging change, the rescue image size grow up > from 5.9 MiB to 27 MiB because systemd dependencies are hardcoded in > mandatory packages." > > This certainly can happen. core-image-minimal-initramfs went from 19M > up to 35M if you turn on systemd

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-21 Thread Otavio Salvador
On Thu, Feb 21, 2013 at 12:35 PM, Burton, Ross wrote: > Hi, > > This thread started sprawling, so I'll do my best to cover all the > points. This is also mainly an attempt to get more information as to > how people are using init managers, as it's still not very clear what > people want beyond "c

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-21 Thread Burton, Ross
Hi, This thread started sprawling, so I'll do my best to cover all the points. This is also mainly an attempt to get more information as to how people are using init managers, as it's still not very clear what people want beyond "choice". "With recent systemd packaging change, the rescue image s

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-21 Thread Phil Blundell
On Thu, 2013-02-21 at 08:50 -0300, Otavio Salvador wrote: > I fully agree; we have many cases where classes workaround system > issues/limitations to avoid code duplications so I see no reason why > this needs to be different with systemd. If you wanted to propose an addition to the class that pur

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-21 Thread Otavio Salvador
On Thu, Feb 21, 2013 at 8:34 AM, Enrico Scholz wrote: > "Burton, Ross" > writes: > >> more upstream over time will also integrate systemd unit files >> directly. > > When in 5 or 10 years everybody switched to systemd and installs its > service files by itself, we can mark the relevant code in th

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-21 Thread Enrico Scholz
"Burton, Ross" writes: > more upstream over time will also integrate systemd unit files > directly. When in 5 or 10 years everybody switched to systemd and installs its service files by itself, we can mark the relevant code in the class as deprecated and remove it. But now, the oe-core systemd

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-21 Thread Burton, Ross
On 21 February 2013 10:34, Enrico Scholz wrote: > oh... this means khem's "meta-systemd: Append ${PN} to SYSTEMD_SERVICE" > patch series is incomplete and all the do_install_append() need to get > yet more complicated What was originally in meta-systemd, and what is there by simply adding a d

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-21 Thread Enrico Scholz
"Burton, Ross" writes: >>> But it doesn't need to be as dangerous as binconfig.bbclass, because >>> we already list .service or .socket files in SYSTEMD_SERVICE so we >>> can improve that "find" call >> >> Why is 'find' required at all? afaik, only files from $SRC_URI are >> affected. So we can

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-20 Thread Burton, Ross
On 18 February 2013 10:17, Enrico Scholz wrote: >> But it doesn't need to be as dangerous as binconfig.bbclass, because >> we already list .service or .socket files in SYSTEMD_SERVICE so we can >> improve that "find" call > > Why is 'find' required at all? afaik, only files from $SRC_URI are > af

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-18 Thread Enrico Scholz
Martin Jansa writes: >> On the specifics of the do_install_append, you've seen my comments >> about how we're not learning from past mistakes with the way the >> do_install in the class was written. I note Phil also agreed with >> them, both of us remembering some of the horrors we've dealt with

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-17 Thread Martin Jansa
On Sat, Feb 16, 2013 at 12:53:07PM +, Richard Purdie wrote: > On the specifics of the do_install_append, you've seen my comments about > how we're not learning from past mistakes with the way the do_install in > the class was written. I note Phil also agreed with them, both of us > remembering

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-17 Thread Enrico Scholz
Richard Purdie writes: > meta-oe earned a *horrendous* reputation because of the way systemd was > implemented there. Can you point me to the corresponding discussion resp. which aspects of the meta-oe implementation were criticized? I can image only two problems with splitted -sysv/-systemd pa

[OE-core] RFE: make the init manager an image feature (again)

2013-02-16 Thread Daniel Lazzari
Sorry I didn't pipe up earlier but we are still working from denzil so I hadn't noticed the steady move away from supporting both sysvinit and systemd in a single distro. We have a similar use case to Otavio where we are hoping to move to systemd this year, but we'll need to use sysvinit for our

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-16 Thread Otavio Salvador
On Sat, Feb 16, 2013 at 5:40 PM, Martin Jansa wrote: > On Sat, Feb 16, 2013 at 12:34:58PM +, Richard Purdie wrote: >> On Sat, 2013-02-16 at 12:57 +0100, Enrico Scholz wrote: >> > Richard Purdie writes: >> > >> it would be nice when the decision to make the init manager a >> > >> distribution

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-16 Thread Martin Jansa
On Sat, Feb 16, 2013 at 12:34:58PM +, Richard Purdie wrote: > On Sat, 2013-02-16 at 12:57 +0100, Enrico Scholz wrote: > > Richard Purdie writes: > > >> it would be nice when the decision to make the init manager a > > >> distribution > > >> feature will be reverted to the old oe-meta mechanis

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-16 Thread Otavio Salvador
On Sat, Feb 16, 2013 at 10:53 AM, Richard Purdie wrote: > On Sat, 2013-02-16 at 08:47 -0200, Otavio Salvador wrote: >> On Sat, Feb 16, 2013 at 7:15 AM, Richard Purdie >> wrote: >> > On Fri, 2013-02-15 at 19:19 +0100, Enrico Scholz wrote: >> >> it would be nice when the decision to make the init m

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-16 Thread Otavio Salvador
On Sat, Feb 16, 2013 at 10:34 AM, Richard Purdie wrote: > On Sat, 2013-02-16 at 12:57 +0100, Enrico Scholz wrote: >> Richard Purdie writes: >> >> it would be nice when the decision to make the init manager a distribution >> >> feature will be reverted to the old oe-meta mechanism. >> > >> > The t

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-16 Thread Richard Purdie
On Sat, 2013-02-16 at 08:47 -0200, Otavio Salvador wrote: > On Sat, Feb 16, 2013 at 7:15 AM, Richard Purdie > wrote: > > On Fri, 2013-02-15 at 19:19 +0100, Enrico Scholz wrote: > >> it would be nice when the decision to make the init manager a distribution > >> feature will be reverted to the old

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-16 Thread Richard Purdie
On Sat, 2013-02-16 at 12:57 +0100, Enrico Scholz wrote: > Richard Purdie writes: > >> it would be nice when the decision to make the init manager a distribution > >> feature will be reverted to the old oe-meta mechanism. > > > > The trouble is that by making it an "image feature", people will > >

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-16 Thread Enrico Scholz
Richard Purdie writes: >> it would be nice when the decision to make the init manager a distribution >> feature will be reverted to the old oe-meta mechanism. > > The trouble is that by making it an "image feature", people will > expect *everything* to work properly and to be able to have fully >

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-16 Thread Otavio Salvador
On Sat, Feb 16, 2013 at 7:15 AM, Richard Purdie wrote: > On Fri, 2013-02-15 at 19:19 +0100, Enrico Scholz wrote: >> it would be nice when the decision to make the init manager a distribution >> feature will be reverted to the old oe-meta mechanism. >> >> Being a distribution feature means, that pa

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-16 Thread Richard Purdie
On Fri, 2013-02-15 at 19:19 +0100, Enrico Scholz wrote: > it would be nice when the decision to make the init manager a distribution > feature will be reverted to the old oe-meta mechanism. > > Being a distribution feature means, that packages are created in such a > way that it is impossible to s

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-15 Thread Martin Jansa
On Fri, Feb 15, 2013 at 04:47:37PM -0200, Otavio Salvador wrote: > On Fri, Feb 15, 2013 at 4:19 PM, Enrico Scholz > wrote: > > Hello, > > > > it would be nice when the decision to make the init manager a distribution > > feature will be reverted to the old oe-meta mechanism. > > > > Being a distri

Re: [OE-core] RFE: make the init manager an image feature (again)

2013-02-15 Thread Otavio Salvador
On Fri, Feb 15, 2013 at 4:19 PM, Enrico Scholz wrote: > Hello, > > it would be nice when the decision to make the init manager a distribution > feature will be reverted to the old oe-meta mechanism. > > Being a distribution feature means, that packages are created in such a > way that it is imposs

[OE-core] RFE: make the init manager an image feature (again)

2013-02-15 Thread Enrico Scholz
Hello, it would be nice when the decision to make the init manager a distribution feature will be reverted to the old oe-meta mechanism. Being a distribution feature means, that packages are created in such a way that it is impossible to split off unwanted and heavy weighted functionality at imag