[pkg-cryptsetup-devel] Bug#891219: cryptsetup: cryptdisks_start bad output formatting

nfb notfreebeer at disroot.org
Fri Feb 23 14:02:57 UTC 2018


Package: cryptsetup
Version: 2:2.0.1-1
Severity: minor

Hi,
after cryptsetup 2:1.7.5-1 -> 2:2.0.1-1 upgrade, starting an encrypted
volume with cryptidsks_start shows broken output:

» cryptdisks_start containers
[....] Starting crypto disk...[info] containers (starting)...
[ ok iners (started)...done.

Besides the whole output looks a bit confusing with the info blocks
not always at the line start and with no space separation (but may be
a matter of personal taste), note the second line, where the volume
name is overwritten by the string "[ ok ".

After a quick check, it seems something must happen between the call
to log_action_cont_msg() by device_msg() in
/lib/cryptsetup/cryptdisks.functions and log_end_msg_pre() in
/lib/lsb/init-functions.d/20-left-info-blocks. Or log_end_msg_pre()
is simply called after log_action_cont_msg() so it overwrites the
beginning of the string, setting the cursor position to the first
column. I didn't investigate further...

Thanks.


-- Package-specific info:

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:2.0.1-1
ii  debconf [debconf-2.0]  1.5.65
ii  dmsetup                2:1.02.145-4.1
ii  libc6                  2.26-6

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.27.2-2
ii  console-setup                           1.178
ii  initramfs-tools [linux-initramfs-tool]  0.130
ii  kbd                                     2.0.4-2

Versions of packages cryptsetup suggests:
ii  dosfstools              4.1-1
pn  keyutils                <none>
ii  liblocale-gettext-perl  1.07-3+b3

-- debconf information:
  cryptsetup/prerm_active_mappings: true


More information about the pkg-cryptsetup-devel mailing list