Re: [PATCH runin] Port to systemd

2012-05-09 Thread James Cameron
On Tue, May 08, 2012 at 10:48:31AM -0600, Daniel Drake wrote: On Tue, May 1, 2012 at 1:15 AM, James Cameron qu...@laptop.org wrote: It seems to work now. How can I get the serial console back during runin? Try this: mkdir /etc/systemd/system/runin.target.wants ln -sf

Re: [PATCH runin] Port to systemd

2012-05-08 Thread Daniel Drake
On Tue, May 1, 2012 at 1:15 AM, James Cameron qu...@laptop.org wrote: It seems to work now. How can I get the serial console back during runin? Try this: mkdir /etc/systemd/system/runin.target.wants ln -sf /lib/systemd/system/serial-getty@.service \

Re: [PATCH runin] Port to systemd

2012-05-01 Thread James Cameron
It seems to work now. How can I get the serial console back during runin? My development head: http://dev.laptop.org/git/users/quozl/runin/log/ A temporary RPM for demonstrating the regression: http://dev.laptop.org/~quozl/olpc-runin-tests-0.19.0-1.armv7hl.rpm Install with rpm -U

Re: [PATCH runin] Port to systemd

2012-04-23 Thread Martin Langhoff
Hi Daniel it's excellent that runin is a runlevel. That's been pending for long. However... A runin-check service is run every boot, after olpc-configure but before the rest of the system. runin-check is based on the old init script. _After_ olpc-configure? AIUI, runin was running much

Re: [PATCH runin] Port to systemd

2012-04-23 Thread Daniel Drake
On Mon, Apr 23, 2012 at 9:40 AM, Martin Langhoff martin.langh...@gmail.com wrote: Hi Daniel it's excellent that runin is a runlevel. That's been pending for long. However... A runin-check service is run every boot, after olpc-configure but before the rest of the system. runin-check is based

Re: [PATCH runin] Port to systemd

2012-04-23 Thread John Watlington
Daniel, Are you sure about this ? Runin does not perform any first boot functions. IIRC Richard goes through great lengths getting X to start... Cheers, wad On Apr 23, 2012, at 11:46 AM, Daniel Drake wrote: On Mon, Apr 23, 2012 at 9:40 AM, Martin Langhoff martin.langh...@gmail.com wrote:

Re: [PATCH runin] Port to systemd

2012-04-23 Thread Daniel Drake
On Mon, Apr 23, 2012 at 11:04 AM, John Watlington w...@laptop.org wrote: Daniel,   Are you sure about this ? Runin does not perform any first boot functions. IIRC Richard goes through great lengths getting X to start... Yes, I'm sure. ### BEGIN INIT INFO # Required-Start: olpc-configure

Re: [PATCH runin] Port to systemd

2012-04-23 Thread Martin Langhoff
On Mon, Apr 23, 2012 at 1:08 PM, Daniel Drake d...@laptop.org wrote: ### BEGIN INIT INFO # Required-Start: olpc-configure ### END INIT INFO ok, and I guess that overrides the chkconfig lines that put runin at 00 and olpc-configure at 01? A naive look at the rc.d symlinks has kept lots of

Re: [PATCH runin] Port to systemd

2012-04-23 Thread Daniel Drake
On Mon, Apr 23, 2012 at 11:12 AM, Martin Langhoff martin.langh...@gmail.com wrote: On Mon, Apr 23, 2012 at 1:08 PM, Daniel Drake d...@laptop.org wrote: ### BEGIN INIT INFO # Required-Start: olpc-configure ### END INIT INFO ok, and I guess that overrides the chkconfig lines that put runin at

Re: [PATCH runin] Port to systemd

2012-04-23 Thread Richard A. Smith
On 04/23/2012 01:08 PM, Daniel Drake wrote: runin does make a lot of effort to be started early, but it explicitly pulls in olpc-configure as a dependency before being run. I helped Richard with this when it was originally implemented. My systemd port maintains the same behaviour. In the very

Re: [PATCH runin] Port to systemd

2012-04-23 Thread James Cameron
Thanks for the patch, I reviewed it and took it into my repo for testing. I already knew olpc-configure was to run first. A trivial issue that I'll test and fix myself: the init.d script sets environment variables and exports them for the called runin-main script to use, and I suspect the

[PATCH runin] Port to systemd

2012-04-20 Thread Daniel Drake
Under systemd, the init-script runin launcher is running later than before, and NetworkManager, crond and a heap of other services are also running while runin runs. Solve this by moving to systemd. A runin-check service is run every boot, after olpc-configure but before the rest of the system.