Bug#839097: journalctl --setup-keys display corrupted

Anthony DeRobertis aderobertis at metrics.net
Wed Sep 28 21:16:52 BST 2016

Package: systemd
Version: 231-4
Severity: normal
File: /bin/journalctl

journalctl --setup-keys appears to be writing the file name and key at
the same time (or maybe there is just a missing newline?), and the
output ends up mixed together:

# journalctl --setup-keys --force 
Generating seed...
Generating key pair...
Generating sealing key...
Failed to set file attributes: Operation not supported

The new key pair has been generated. The secret sealing key has been written to
the following local file. This key file is automatically updated when the
sealing key is advanced. It should not be used on multiple hosts.

Please write down the following secret verification key. It should be stored
at a safe location and should not be saved locally on disk.


The sealing key is automatically changed every 15min.

The keys have been generated for host Toma/129355ce8a5041bda1c8bce158d4a12c.
---- end output ----

I'm not sure what the failure to set attributes is; maybe it's because
I'm using btrfs? 

I've found I can work around it by running:

   journalctl --setup-keys --force |& cat

which disables all the other output, showing just the key.

(I re-ran setup-keys so I'm not using the key I just sent to the BTS)

-- Package-specific info:

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

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  adduser         3.115
ii  libacl1         2.2.52-3
ii  libapparmor1    2.10.95-4
ii  libaudit1       1:2.6.6-1
ii  libblkid1       2.28.1-1
ii  libc6           2.23-5
ii  libcap2         1:2.25-1
ii  libcap2-bin     1:2.25-1
ii  libcryptsetup4  2:1.7.0-2
ii  libgcrypt20     1.7.3-1
ii  libgpg-error0   1.24-1
ii  libidn11        1.33-1
ii  libkmod2        22-1.1
ii  liblzma5        5.1.1alpha+20120614-2.1
ii  libmount1       2.28.1-1
ii  libpam0g        1.1.8-3.3
ii  libseccomp2     2.3.1-2
ii  libselinux1     2.5-3
ii  libsystemd0     231-4
ii  mount           2.28.1-1
ii  util-linux      2.28.1-1

Versions of packages systemd recommends:
ii  dbus            1.10.10-1
ii  libpam-systemd  231-4

Versions of packages systemd suggests:
pn  policykit-1        <none>
pn  systemd-container  <none>
pn  systemd-ui         <none>

Versions of packages systemd is related to:
ii  udev  231-4

-- Configuration Files:
/etc/systemd/journald.conf changed:

-- no debconf information

More information about the Pkg-systemd-maintainers mailing list