Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #61894
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Guilhem Moulin <guilhem@debian.org> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#906664: [pkg-cryptsetup-devel] Bug#906664: initramfs-tools: Add partition table support to get_fstype |
| Date | Thu, 23 Aug 2018 12:40:01 +0200 |
| Message-ID | <wpVbX-2Z5-3@gated-at.bofh.it> (permalink) |
| References | <wovjz-1pq-3@gated-at.bofh.it> <wp2pc-4cN-7@gated-at.bofh.it> <wp7RT-7iJ-7@gated-at.bofh.it> <wpHVo-3v7-11@gated-at.bofh.it> <wovjz-1pq-3@gated-at.bofh.it> <wpHVo-3v7-11@gated-at.bofh.it> |
| X-Original-To | Ben Hutchings <ben@decadent.org.uk> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Thu Aug 23 10:33:09 2018 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -2.19 |
| Reply-To | Guilhem Moulin <guilhem@debian.org>, 906664@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | Debian kernel team <debian-kernel@lists.debian.org> |
| X-Debian-Pr-Message | followup 906664 |
| X-Debian-Pr-Package | initramfs-tools |
| X-Debian-Pr-Keywords | wontfix |
| X-Debian-Pr-Source | initramfs-tools |
| X-Spam-Bayes | score:0.0000 Tokens: new, 22; hammy, 150; neutral, 99; spammy, 0. spammytokens: hammytokens:0.000-+--H*c:pgp-sha512, 0.000-+--H*c:pgp-signature, 0.000-+--H*c:protocol, 0.000-+--H*c:micalg, 0.000-+--H*c:signed |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=fripost.org; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:message-id:subject:subject :from:from:date:date; s=20140703; t=1535020192; x=1536834593; bh=UCtB3lnPrG7zMGi1Pjv9MO74dmsfJ27x4zcpVgw8QTM=; b=ne6BwEMuW0zs J39PyLvxF53gOp5c6S+2rCPbpadgXKqa5kkSMOsTSR2m84LAQH33fC6ypifmGka4 o2Uw/k+ayKVb4D6c8kpFoCqVx2TrC5C72jWZa7TTJLrGTUJsnFGliUGmDQaOdblb lvWTS+85hrhmhPrGO1Rev3iYmUtbNSI= |
| MIME-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" |
| Content-Disposition | inline |
| User-Agent | Mutt/1.10.1 (2018-07-13) |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1480981 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 64 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Nazar Mokrynskyi <nazar@mokrynskyi.com>, cryptsetup@packages.debian.org, 906664@bugs.debian.org |
| X-Original-Date | Thu, 23 Aug 2018 12:29:41 +0200 |
| X-Original-Message-ID | <20180823102941.GB5135@localhost.localdomain> |
| X-Original-References | <153468237179.2109.17235396617938097509.reportbug@localhost.localdomain> <f1b83f75b974f68ef09929b5170af559e89104f4.camel@decadent.org.uk> <d5744da2-03cc-7945-87bb-72c770831ec7@mokrynskyi.com> <a3a0b411e4538eed56f471b0c9ad7572fd95d4b8.camel@decadent.org.uk> <153468237179.2109.17235396617938097509.reportbug@localhost.localdomain> <a3a0b411e4538eed56f471b0c9ad7572fd95d4b8.camel@decadent.org.uk> |
| Xref | csiph.com linux.debian.bugs.dist:914306 linux.debian.kernel:61894 |
Cross-posted to 2 groups.
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Wed, 22 Aug 2018 at 21:22:19 +0100, Ben Hutchings wrote:
> Looking at the local-top script from cryptsetup-initramfs, it seems to
> depend rather too closely on details of both initramfs-tools and lvm2.
>
> - Why does it try to activate a volume group directly? lvm2's scripts
> should do that.
They ideally should but currently don't, cf. #565676. Currently
(2.02.176-4.1) /scripts/local-top/lvm2 only activate volumes holding the
root system and/or resume device.
So for dm-crypt in LVM, the underlying LV needs to be activated when
/scripts/local-top/cryptroot waits for the source device [0].
For LVM in dm-crypt however, instead of activating the LV manually [1]
we could let /scripts/local-{top,block}/lvm2 do it; while the cryptroot
scripts have been running since 12 years or so, I think we could run it
before lvm2 instead.
> - I don't think it should probe the contents of the encrypted volume at
> all. That would mean that a wrong password for a non-LUKS device won't
> be specifically detected and reported. But LUKS is strongly
> recommended, and I don't think this makes the non-LUKS user experience
> significantly worse.
This was reported as #906283 a few days ago, and I proposed to remove
the check, for LUKS devices at least.
--
Guilhem.
[0] https://sources.debian.org/src/cryptsetup/2:2.0.4-2/debian/initramfs/scripts/local-top/cryptroot/#L61
[1] https://sources.debian.org/src/cryptsetup/2:2.0.4-2/debian/initramfs/scripts/local-top/cryptroot/#L158
Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#906664: initramfs-tools: Add partition table support to get_fstype Nazar Mokrynskyi <nazar@mokrynskyi.com> - 2018-08-19 14:50 +0200
Processed: Re: Bug#906664: initramfs-tools: Add partition table support to get_fstype "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-08-21 02:10 +0200
Bug#906664: initramfs-tools: Add partition table support to get_fstype Ben Hutchings <ben@decadent.org.uk> - 2018-08-21 02:10 +0200
Bug#906664: initramfs-tools: Add partition table support to get_fstype Nazar Mokrynskyi <nazar@mokrynskyi.com> - 2018-08-21 08:00 +0200
Bug#906664: initramfs-tools: Add partition table support to get_fstype Ben Hutchings <ben@decadent.org.uk> - 2018-08-22 22:30 +0200
Bug#906664: [pkg-cryptsetup-devel] Bug#906664: initramfs-tools: Add partition table support to get_fstype Guilhem Moulin <guilhem@debian.org> - 2018-08-23 12:40 +0200
Bug#906664: [pkg-cryptsetup-devel] Bug#906664: initramfs-tools: Add partition table support to get_fstype Guilhem Moulin <guilhem@debian.org> - 2018-08-23 12:50 +0200
csiph-web