Merge lp:~pali/ubuntu/oneiric/initramfs-tools/initramfs-tools into lp:ubuntu/oneiric/initramfs-tools

Proposed by Pali
Status: Work in progress
Proposed branch: lp:~pali/ubuntu/oneiric/initramfs-tools/initramfs-tools
Merge into: lp:ubuntu/oneiric/initramfs-tools
Diff against target: 164 lines (+76/-6) (has conflicts)
3 files modified
debian/changelog (+12/-0)
init (+12/-0)
scripts/functions (+52/-6)
Text conflict in debian/changelog
Text conflict in init
Text conflict in scripts/functions
To merge this branch: bzr merge lp:~pali/ubuntu/oneiric/initramfs-tools/initramfs-tools
Reviewer Review Type Date Requested Status
Martin Pitt Needs Fixing
Review via email: mp+64373@code.launchpad.net

Description of the change

Write boot log messages to plymouth.

This patch add support for writing boot mesages like "Running /scripts/local-top" on plymouth screen (like old usplash).

This patch/merge depends on these plymouth merges:
https://code.launchpad.net/~pali/ubuntu/natty/plymouth/plymouth/+merge/61897
https://code.launchpad.net/~pali/ubuntu/oneiric/kubuntu-default-settings/kubuntu-default-settings/+merge/63334

When plymouth is running, it write boot log messages to console too - without drm/framebuffer splash renderer. Then plymouth use detail text output to console. So this is reason why _log_msg is not called when plymouth is running (it would be in console 2 times).

To post a comment you must log in.
241. By Pali

Fixed writing messages to plymouth

Revision history for this message
Martin Pitt (pitti) wrote :

This is blocked on landing https://code.launchpad.net/~pali/ubuntu/natty/plymouth/plymouth/+merge/61897 upstream first, and then needs an update to the current package. I'm setting this to "work in progress", please set back to "needs review" once above happened. Thanks!

review: Needs Fixing

Unmerged revisions

241. By Pali

Fixed writing messages to plymouth

240. By Pali

Write boot log messages to plymouth

239. By Scott James Remnant (Canonical)

Create /run in the initramfs, move to the real filesystem before
exec'ing init so that it survices. /dev/.initramfs is a symlink to
/run/initramfs, and the old /dev/.initramfs/varrun path just points to
/run (via two symlinks).

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 2011-07-15 09:20:35 +0000
3+++ debian/changelog 2011-07-18 06:22:31 +0000
4@@ -1,3 +1,4 @@
5+<<<<<<< TREE
6 initramfs-tools (0.99ubuntu2) oneiric; urgency=low
7
8 * hook-functions: Revert changes from 0.98.8ubuntu3. With the current
9@@ -108,6 +109,17 @@
10
11 -- Evan Broder <evan@ebroder.net> Wed, 22 Jun 2011 10:57:43 -0700
12
13+=======
14+initramfs-tools (0.98.8ubuntu4) UNRELEASED; urgency=low
15+
16+ * Create /run in the initramfs, move to the real filesystem before
17+ exec'ing init so that it survices. /dev/.initramfs is a symlink to
18+ /run/initramfs, and the old /dev/.initramfs/varrun path just points to
19+ /run (via two symlinks).
20+
21+ -- Scott James Remnant <scott@netsplit.com> Tue, 03 May 2011 14:29:50 -0700
22+
23+>>>>>>> MERGE-SOURCE
24 initramfs-tools (0.98.8ubuntu3) natty; urgency=low
25
26 * If copy_exec finds libraries to copy which are only accessible to the
27
28=== modified file 'init'
29--- init 2011-07-15 09:07:21 +0000
30+++ init 2011-07-18 06:22:31 +0000
31@@ -22,11 +22,22 @@
32 [ -e /dev/null ] || mknod /dev/null c 1 3
33 fi
34 mkdir /dev/pts
35+<<<<<<< TREE
36 mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
37 mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
38 mkdir /run/initramfs
39 # compatibility symlink for the pre-oneiric locations
40 ln -s /run/initramfs /dev/.initramfs
41+=======
42+mount -t devpts -o noexec,nosuid,gid=5,mode=0620 none /dev/pts || true
43+> /dev/.initramfs-tools
44+mkdir /run
45+mount -t tmpfs -o mode=0755,nodev,noexec,nosuid none /run
46+mkdir -m 1777 /run/lock
47+mkdir /run/initramfs
48+ln -nsf /run /run/initramfs/varrun
49+ln -nsf /run/initramfs /dev/.initramfs
50+>>>>>>> MERGE-SOURCE
51
52 # Export the dpkg architecture
53 export DPKG_ARCH=
54@@ -271,6 +282,7 @@
55 # Move virtual filesystems over to the real filesystem
56 mount -n -o move /sys ${rootmnt}/sys
57 mount -n -o move /proc ${rootmnt}/proc
58+mount -n -o move /run ${rootmnt}/run
59
60 validate_init() {
61 checktarget="${1}"
62
63=== modified file 'initramfs-tools.8'
64=== modified file 'scripts/functions'
65--- scripts/functions 2011-07-12 07:22:11 +0000
66+++ scripts/functions 2011-07-18 06:22:31 +0000
67@@ -8,27 +8,59 @@
68
69 log_success_msg()
70 {
71- _log_msg "Success: $@\n"
72+ if [ -x /bin/plymouth ] && /bin/plymouth --ping; then
73+ /bin/plymouth message --text="log:Success: $@"
74+ else
75+ _log_msg "Success: $@\n"
76+ fi
77 }
78
79 log_failure_msg()
80 {
81- _log_msg "Failure: $@\n"
82+ if [ -x /bin/plymouth ] && /bin/plymouth --ping; then
83+ /bin/plymouth message --text="log:Failure: $@"
84+ else
85+ _log_msg "Failure: $@\n"
86+ fi
87 }
88
89 log_warning_msg()
90 {
91- _log_msg "Warning: $@\n"
92+ if [ -x /bin/plymouth ] && /bin/plymouth --ping; then
93+ /bin/plymouth message --text="log:Warning: $@"
94+ else
95+ _log_msg "Warning: $@\n"
96+ fi
97 }
98
99 log_begin_msg()
100 {
101+<<<<<<< TREE
102 _log_msg "Begin: $@ ... "
103+=======
104+ if [ -x /bin/plymouth ] && /bin/plymouth --ping; then
105+ /bin/plymouth message --text="log:$@"
106+ elif [ -x /sbin/usplash_write ]; then
107+ /sbin/usplash_write "TEXT $@"
108+ else
109+ _log_msg "Begin: $@ ... "
110+ fi
111+>>>>>>> MERGE-SOURCE
112 }
113
114 log_end_msg()
115 {
116+<<<<<<< TREE
117 _log_msg "done.\n"
118+=======
119+ if [ -x /bin/plymouth ] && /bin/plymouth --ping; then
120+ /bin/plymouth message --text="log:ok"
121+ elif [ -x /sbin/usplash_write ]; then
122+ /sbin/usplash_write "SUCCESS ok"
123+ else
124+ _log_msg "done.\n"
125+ fi
126+>>>>>>> MERGE-SOURCE
127 }
128
129 # Add failure hook
130@@ -54,10 +86,13 @@
131 if [ -x /sbin/usplash_write ]; then
132 /sbin/usplash_write "QUIT"
133 fi
134+
135+ # Hide also plymouth boot splash
136+ if [ -x /bin/plymouth ] && /bin/plymouth --ping; then
137+ /bin/plymouth hide-splash > /dev/null 2>&1
138+ fi
139+
140 chvt 1
141- if [ -x /bin/plymouth ] && plymouth --ping; then
142- /bin/plymouth hide-splash > /dev/null 2>&1
143- fi
144
145 for hook in /tmp/mountroot-fail-hooks.d/*; do
146 if [ -x ${hook} ] && ${hook} mountfail; then
147@@ -69,6 +104,17 @@
148
149 panic()
150 {
151+<<<<<<< TREE
152+=======
153+ if [ -x /sbin/usplash_write ]; then
154+ /sbin/usplash_write "QUIT"
155+ fi
156+
157+ if [ -x /bin/plymouth ] && /bin/plymouth --ping; then
158+ /bin/plymouth hide-splash > /dev/null 2>&1
159+ fi
160+
161+>>>>>>> MERGE-SOURCE
162 if command -v chvt >/dev/null 2>&1; then
163 chvt 1
164 fi

Subscribers

People subscribed via source and target branches

to all changes: