Merge lp:~csurbhi/ubuntu/natty/cryptsetup/cryptsetup.bug-fix566818 into lp:ubuntu/natty/cryptsetup

Proposed by Surbhi Palande
Status: Merged
Merge reported by: Colin Watson
Merged at revision: not available
Proposed branch: lp:~csurbhi/ubuntu/natty/cryptsetup/cryptsetup.bug-fix566818
Merge into: lp:ubuntu/natty/cryptsetup
Diff against target: 38 lines (+15/-1)
2 files modified
debian/changelog (+12/-0)
debian/initramfs/cryptroot-script (+3/-1)
To merge this branch: bzr merge lp:~csurbhi/ubuntu/natty/cryptsetup/cryptsetup.bug-fix566818
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+57882@code.launchpad.net

Description of the change

At boot the user passsword for a crypted device is captured by plymouth when it is available. By default the "details" plugin is used in text based logins. On every key stroke, the "details" plugin in plymouth clears only the current line before overwriting it with the password prompt. If the prompt is multilined then the last line ends up being overwritten but the previous lines are repeated. Changing the password prompt string to be single lined when plymouth is available. (LP:#566818)

Tested on kvm.

Please consider this change for natty.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks! I've merged this into lp:~ubuntu-core-dev/cryptsetup/ubuntu instead, as that's where this package is currently maintained (see the Vcs-Bzr field).

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2010-11-27 17:37:43 +0000
+++ debian/changelog 2011-04-15 14:21:49 +0000
@@ -1,3 +1,15 @@
1cryptsetup (2:1.1.3-4ubuntu2) natty; urgency=low
2
3 * debian/initramfs/cryptroot-script: At boot the user passsword for a
4 crypted device is captured by plymouth when it is available. On every
5 key stroke, the "details" plugin in plymouth clears only the current line
6 before overwriting it with the password prompt. If the prompt is
7 multilined then the last line ends up being overwritten but the previous
8 lines are repeated. Changing the password prompt string to be single lined
9 when plymouth is available. (LP:#566818)
10
11 -- Surbhi Palande <surbhi.palande@canonical.com> Fri, 15 Apr 2011 16:57:37 +0300
12
1cryptsetup (2:1.1.3-4ubuntu1) natty; urgency=low13cryptsetup (2:1.1.3-4ubuntu1) natty; urgency=low
214
3 * Merge from debian unstable (LP: #682177), remaining changes:15 * Merge from debian unstable (LP: #682177), remaining changes:
416
=== modified file 'debian/initramfs/cryptroot-script'
--- debian/initramfs/cryptroot-script 2010-11-27 17:37:43 +0000
+++ debian/initramfs/cryptroot-script 2011-04-15 14:21:49 +0000
@@ -271,11 +271,13 @@
271 fi271 fi
272272
273 if [ -z "$cryptkeyscript" ]; then273 if [ -z "$cryptkeyscript" ]; then
274 cryptkey="Unlocking the disk $cryptsource ($crypttarget)\nEnter passphrase: "
275 if [ -x /bin/plymouth ] && plymouth --ping; then274 if [ -x /bin/plymouth ] && plymouth --ping; then
275 echo "Unlocking the disk $cryptsource ($crypttarget)"
276 cryptkey="Enter passphrase: "
276 cryptkeyscript="plymouth ask-for-password --prompt"277 cryptkeyscript="plymouth ask-for-password --prompt"
277 cryptkey=$(echo -e "$cryptkey")278 cryptkey=$(echo -e "$cryptkey")
278 else279 else
280 cryptkey="Unlocking the disk $cryptsource ($crypttarget)\nEnter passphrase: "
279 cryptkeyscript="/lib/cryptsetup/askpass"281 cryptkeyscript="/lib/cryptsetup/askpass"
280 fi282 fi
281 fi283 fi

Subscribers

People subscribed via source and target branches