Merge lp:~vorlon/ubuntu/precise/upstart/lp.876626 into lp:ubuntu/precise/upstart

Proposed by Steve Langasek
Status: Merged
Merged at revision: 1392
Proposed branch: lp:~vorlon/ubuntu/precise/upstart/lp.876626
Merge into: lp:ubuntu/precise/upstart
Diff against target: 45 lines (+8/-13)
2 files modified
debian/changelog (+4/-0)
init/main.c (+4/-13)
To merge this branch: bzr merge lp:~vorlon/ubuntu/precise/upstart/lp.876626
Reviewer Review Type Date Requested Status
James Hunt (community) Approve
Review via email: mp+103372@code.launchpad.net

Description of the change

Hi James,

Here's a branch that reverts the console handling in upstart for Ubuntu, as
discussed. If this looks good to you, I can include it for an SRU to
precise.

I've made a similar change for oneiric, but for some reason launchpad
doesn't have a UDD branch for oneiric-updates, so I've uploaded that one
directly to the SRU queue.

To post a comment you must log in.
Revision history for this message
James Hunt (jamesodhunt) wrote :

Looks fine to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-04-20 04:06:59 +0000
3+++ debian/changelog 2012-04-24 20:35:37 +0000
4@@ -2,6 +2,10 @@
5
6 * debian/upstart.logrotate: don't create empty files after rotation;
7 upstart will automatically create new log files for jobs as needed.
8+ * init/main.c: restore the fix for bug #540256; we know the console setup
9+ is taken care of by plymouth in Ubuntu, so upstart changing the console
10+ settings just makes trouble (such as turning echo back on when it
11+ shouldn't be). LP: #876626.
12
13 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 19 Apr 2012 21:06:24 -0700
14
15
16=== modified file 'init/main.c'
17--- init/main.c 2012-03-22 14:38:46 +0000
18+++ init/main.c 2012-04-24 20:35:37 +0000
19@@ -244,22 +244,13 @@
20 * resetting it to sane defaults unless we're inheriting from another
21 * init process which we know left it in a sane state.
22 */
23- if (system_setup_console (CONSOLE_OUTPUT, (! restart)) < 0) {
24- NihError *err;
25-
26+ if (system_setup_console (CONSOLE_NONE, (! restart)) < 0) {
27 err = nih_error_get ();
28- nih_warn ("%s: %s", _("Unable to initialize console, will try /dev/null"),
29- err->message);
30+ nih_fatal ("%s: %s", _("Unable to initialize console as /dev/null"),
31+ err->message);
32 nih_free (err);
33
34- if (system_setup_console (CONSOLE_NONE, FALSE) < 0) {
35- err = nih_error_get ();
36- nih_fatal ("%s: %s", _("Unable to initialize console as /dev/null"),
37- err->message);
38- nih_free (err);
39-
40- exit (1);
41- }
42+ exit (1);
43 }
44
45 /* Set the PATH environment variable */

Subscribers

People subscribed via source and target branches