Your message dated Sun, 2 Aug 2020 22:05:51 +0200
with message-id <[email protected]>
and subject line Re: systemd-cryptsetup-generator does not like crypttab option 
tmp=ext2
has caused the Debian Bug report #773157,
regarding systemd-cryptsetup-generator does not like crypttab option tmp=ext2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
773157: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773157
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: systemd
Version: 215-7
Severity: normal
Tags: patch

The following configuration causes boot to wait 1 minute and 30 seconds
before starting an emergency root shell.

/etc/crypttab:
vg0-tmp_crypt /dev/vg0/tmp /dev/urandom 
tmp=ext2,cipher=aes-xts-benbi,hash=sha512,size=512,noearly

/etc/fstab:
/dev/mapper/vg0-tmp_crypt /tmp ext2    rw,nosuid,nodev          0    2

In the has_option function of cryptsetup-generator.c, the following line:
if (f[l] != 0 && f[l] != ',') {

can be changed to:
if (f[l] != 0 && f[l] != ',' && f[l] != '=') {

This cures the problem on my systems, but a more in-depth patch might
actually respect the filesystem type listed in /etc/crypttab.  It appears
that the device is always formatted as ext2, no matter what is
prescribed.

-- Package-specific info:

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

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

Versions of packages systemd depends on:
ii  acl             2.2.52-2
ii  adduser         3.113+nmu3
ii  initscripts     2.88dsf-58
ii  libacl1         2.2.52-2
ii  libaudit1       1:2.4-1+b1
ii  libblkid1       2.25.2-3
ii  libc6           2.19-13
ii  libcap2         1:2.24-6
ii  libcap2-bin     1:2.24-6
ii  libcryptsetup4  2:1.6.6-3
ii  libgcrypt20     1.6.2-4+b1
ii  libkmod2        18-3
ii  liblzma5        5.1.1alpha+20120614-2+b3
ii  libpam0g        1.1.8-3.1
ii  libselinux1     2.3-2
ii  libsystemd0     215-7
ii  mount           2.25.2-3
ii  sysv-rc         2.88dsf-58
ii  udev            215-7
ii  util-linux      2.25.2-3

Versions of packages systemd recommends:
ii  dbus            1.8.12-1
ii  libpam-systemd  215-7

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

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 246-1

From the v246 NEWS file:

* The /etc/crypttab tmp option now optionally takes an argument
  selecting the file system to use. Moreover, the default is now
  changed from ext2 to ext4.


Closing accordingly.

Regards,
Michael

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to