Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #67692 > unrolled thread

Bug#967922: initramfs-tools-core: /run/cryptsetup should be configure with /usr/lib/tmpfiles.d/cryptsetup.conf

Started byDiego Escalante Urrelo <diegoe@gnome.org>
First post2020-08-05 05:20 +0200
Last post2020-08-06 01:00 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#967922: initramfs-tools-core: /run/cryptsetup should be configure with /usr/lib/tmpfiles.d/cryptsetup.conf Diego Escalante Urrelo <diegoe@gnome.org> - 2020-08-05 05:20 +0200
    Bug#967922: initramfs-tools-core: /run/cryptsetup should be configure with /usr/lib/tmpfiles.d/cryptsetup.conf Ben Hutchings <ben@decadent.org.uk> - 2020-08-06 01:00 +0200
    Processed: Re: Bug#967922: initramfs-tools-core: /run/cryptsetup  should be configure with /usr/lib/tmpfiles.d/cryptsetup.conf "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-08-06 01:00 +0200

#67692 — Bug#967922: initramfs-tools-core: /run/cryptsetup should be configure with /usr/lib/tmpfiles.d/cryptsetup.conf

FromDiego Escalante Urrelo <diegoe@gnome.org>
Date2020-08-05 05:20 +0200
SubjectBug#967922: initramfs-tools-core: /run/cryptsetup should be configure with /usr/lib/tmpfiles.d/cryptsetup.conf
Message-ID<AAi89-8sC-1@gated-at.bofh.it>
Package: initramfs-tools-core
Version: 0.137
Severity: normal
X-Debbugs-Cc: diegoe@gnome.org

cryptsetup expects the `/run/cryptsetup` directory to exist, and
according to upstream the preferred way to get it to exist is with a
tmpfiles.d file:
  https://gitlab.com/cryptsetup/cryptsetup/-/merge_requests/99#note_390506222

`initramfs-core-tools` however just creates it manually:
```
/usr/share/initramfs-tools /scripts/local-top/cryptroot:
    # Create locking directory before invoking cryptsetup(8) to avoid warnings
    mkdir -pm0700 /run/cryptsetup
```

`dracut` does something similar in its scripts, but apparently in my
system systemd takes over and said script is never run, or ran too late?

```
/usr/lib/dracut/modules.d/90crypt/cryptroot-ask.sh:
    mkdir -p -m 0700 /run/cryptsetup
```

So, I believe perhaps the above directory might follow upstream
recommendation and be created in a tmpfiles.d configuration file.

Note that /usr/lib/tmpfiles.d/cryptsetup.conf is installed by
`cryptsetup-bin`.

A similar bug was opened for `dracut`:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=967921

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

Kernel: Linux 5.7.0-2-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages initramfs-tools-core depends on:
ii  coreutils    8.32-2
ii  cpio         2.13+dfsg-2
ii  e2fsprogs    1.45.6-1
ii  klibc-utils  2.0.7-1
ii  kmod         27+20200310-2
ii  logsave      1.45.6-1
ii  udev         246-2

Versions of packages initramfs-tools-core recommends:
ii  busybox  1:1.30.1-4
ii  pigz     2.4-1+b1

Versions of packages initramfs-tools-core suggests:
ii  bash-completion  1:2.10-1

-- Configuration Files:
/etc/initramfs-tools/initramfs.conf changed [not included]

-- no debconf information

[toc] | [next] | [standalone]


#67706

FromBen Hutchings <ben@decadent.org.uk>
Date2020-08-06 01:00 +0200
Message-ID<AAAy5-2xq-1@gated-at.bofh.it>
In reply to#67692

[Multipart message — attachments visible in raw view] — view raw

Control: reassign -1 cryptsetup-initramfs

On Tue, 2020-08-04 at 22:14 -0500, Diego Escalante Urrelo wrote:
> Package: initramfs-tools-core
> Version: 0.137
> Severity: normal
> X-Debbugs-Cc: diegoe@gnome.org
> 
> cryptsetup expects the `/run/cryptsetup` directory to exist, and
> according to upstream the preferred way to get it to exist is with a
> tmpfiles.d file:
>   https://gitlab.com/cryptsetup/cryptsetup/-/merge_requests/99#note_390506222
> 
> `initramfs-core-tools` however just creates it manually:
> ```
> /usr/share/initramfs-tools /scripts/local-top/cryptroot:
[...]

This is not part of initramfs-tools-core, but part of cryptsetup-
initramfs.  (Use 'dpkg -S' to see which package owns a file.)

Ben.

-- 
Ben Hutchings
Theory and practice are closer in theory than in practice - John Levine


[toc] | [prev] | [next] | [standalone]


#67708 — Processed: Re: Bug#967922: initramfs-tools-core: /run/cryptsetup should be configure with /usr/lib/tmpfiles.d/cryptsetup.conf

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2020-08-06 01:00 +0200
SubjectProcessed: Re: Bug#967922: initramfs-tools-core: /run/cryptsetup should be configure with /usr/lib/tmpfiles.d/cryptsetup.conf
Message-ID<AAAy6-2xq-7@gated-at.bofh.it>
In reply to#67692
Processing control commands:

> reassign -1 cryptsetup-initramfs
Bug #967922 [initramfs-tools-core] initramfs-tools-core: /run/cryptsetup should be configure with /usr/lib/tmpfiles.d/cryptsetup.conf
Bug reassigned from package 'initramfs-tools-core' to 'cryptsetup-initramfs'.
No longer marked as found in versions initramfs-tools/0.137.
Ignoring request to alter fixed versions of bug #967922 to the same values previously set

-- 
967922: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=967922
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web