Unable to enter password during boot

Andrey Borzenkov arvidjaar at gmail.com
Sun Feb 6 10:48:31 PST 2011


I am converting Mandriva boot to native systemd. Part of it is
handling of crypto devices; systemd will request pass phrase from user
when activating devices in /etc/crypttab. Well, password entry does
not work. In graphical mode I get password request, no feedback when I
type and when I press ENTER password appears obfuscated (as starts) in
input field. Repeatedly pressing ENTER just adds more stars. In text
mode I get password prompt; when I type password it is echoed back;
pressing ENTER echoes stars and repeatedly pressing ENTER just adds
more stars.

Looks like terminal is somehow screwed up at the point of password input.

The version is 0.8.3 with selected patches from GIT:

# (fc) 0.8.3-2mdv fix tty staying locked after boot (GIT)
Patch0: plymouth-0.8.3-tty-lock.patch
# (fc) 0.8.3-3mdv do not switch VT when hiding plymouth (Mdv bug #59375)
Patch1: plymouth-0.8.3-retain-vt.patch
# (fc) 0.8.3-4mdv do not exit if details plugin isn't available
Patch2: plymouth-0.8.3-details-not-available.patch

# (bor) 0.8.3-5mdv fix "stair stepping" effect on terminal using systemd (GIT)
Patch3: plymouth-0.8.3-tty-OPOST-ONLCR.patch
# (bor) 0.8.3-6mdv be more liberal in accepting init= kernel parameter
(GIT backport)
Patch4: plymouth-0.8.3-smarter_init_detection.patch
# (bor) 0.8.3-6mdv change socket name (GIT)
Patch5: plymouth-0.8.3-change_socket_path.patch
# (bor) 0.8.3-7mdv fix previous patch (submitted upstream)
Patch6: plymouth-0.8.3-change_socket_path-fix.patch

# (proyvind) 0.7.2-8mdv fix build with uclibc (should go upstream..)
Patch7: plymouth-0.7.2-add-missing-header.patch
# (proyvind) 0.7.2-8mdv fix library link order for static linking (idem..)
Patch8: plymouth-0.8.3-library-link-order.patch
# (proyvind) 0.7.2-8mdv substitute /usr/lib with /lib rather than just
stripping away
# /usr. This so that ie. /usr/uclibc/usr/lib will be be
/usr/uclibc/lib rather than
# /uclibc/usr/lib. (should probably go upstream as well)
Patch9: plymouth-0.7.2-less-greedy-usr_lib-substitution.patch
# (proyvind) 0.7.2-8mdv specify absolute path to /bin/plymouth to ensure install
# location with uclibc
Patch10: plymouth-0.8.3-initrd-absolute-path.patch
# (proyvind): /usr/libexec/mkinird-functions has been moved to
/lib/mkinitrd/functions
#             to be available, usable and /sbin/mkinitrd location sensible
Patch11: SOURCES/plymouth-0.8.3-move-mkinitrd-functions-under-root-lib.patch
# (bor) 0.8.3-8 "could not write bytes" is not error (GIT)
Patch12: plymouth-0.8.3-boot-server-don-t-print-error-when-client-goes-away.patch

We use tty7 as default splash output:

%configure2_5x CC="%{uclibc_cc}" \
        CFLAGS="%{uclibc_cflags}" \
        LDFLAGS="%{ldflags} -lz" \
        --prefix=%{uclibc_root}%{_prefix} \
        --libdir="%{uclibc_root}%{_libdir}" \
        --bindir="%{uclibc_root}%{plymouthclient_execdir}" \
        --sbindir="%{uclibc_root}%{plymouthdaemon_execdir}" \
        --enable-tracing --disable-tests \
        --with-logo=%{_datadir}/icons/large/mandriva.png                \
        --with-background-start-color-stop=0x0073B3                     \
        --with-background-end-color-stop=0x00457E                       \
        --with-background-color=0x3391cd                                \
        --disable-gdm-transition                                        \
        --without-gdm-autostart-file                                    \
        --without-rhgb-compat-link                                      \
        --with-system-root-install                                      \
        --with-boot-tty=tty7                                            \
        --with-shutdown-tty=tty1                                        \
        --with-release-file=/etc/mandriva-release

I probably will try to build current upstream, but if it rings the
bell for someone ...


More information about the plymouth mailing list