Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #61877
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Nazar Mokrynskyi <nazar@mokrynskyi.com> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#906664: initramfs-tools: Add partition table support to get_fstype |
| Date | Tue, 21 Aug 2018 08:00:01 +0200 |
| Message-ID | <wp7RT-7iJ-7@gated-at.bofh.it> (permalink) |
| References | <wovjz-1pq-3@gated-at.bofh.it> <wp2pc-4cN-7@gated-at.bofh.it> <wovjz-1pq-3@gated-at.bofh.it> <wp2pc-4cN-7@gated-at.bofh.it> |
| X-Original-To | Ben Hutchings <ben@decadent.org.uk>, 906664@bugs.debian.org |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Tue Aug 21 05:51:16 2018 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -2.189 |
| Reply-To | Nazar Mokrynskyi <nazar@mokrynskyi.com>, 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, 30; hammy, 150; neutral, 178; spammy, 0. spammytokens: hammytokens:0.000-+--LUKS, 0.000-+--H*u:x86_64, 0.000-+--fstype, 0.000-+--dmcrypt, 0.000-+--dm-crypt |
| Authentication-Results | mx.mokrynskyi.com (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=mokrynskyi.com |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=mokrynskyi.com; h=content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:organization:from:from:references:to:subject :subject; s=dkim; t=1534829922; x=1535693923; bh=a1u1NWxC0J3qJSz FOkeg9rm+67L5SldbpIt9I0io1Pc=; b=KXHRGVaTlIpgXd1Ayjf2cctgp0t3uqK Kxig4qXFMmxqpEF2+pGPQgBeo2gS6mfnI4AqL28NoI+zNf4uj59cxeWXVeM1rZUC O+5Rxk93cyXd+pobHdzclEkbjaMRRHKuJB758FCCBk0Y7/8WcnT1hipgAVN+q8UL ntF1ToPrkxes= |
| Organization | CleverStyle, Ecoisme |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Language | uk |
| Content-Transfer-Encoding | quoted-printable |
| X-Greylist | delayed 531 seconds by postgrey-1.36 at buxtehude; Tue, 21 Aug 2018 05:47:36 UTC |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1480383 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 66 |
| Sender | robomod@news.nic.it |
| X-Original-Date | Tue, 21 Aug 2018 08:38:31 +0300 |
| X-Original-Message-ID | <d5744da2-03cc-7945-87bb-72c770831ec7@mokrynskyi.com> |
| X-Original-References | <153468237179.2109.17235396617938097509.reportbug@localhost.localdomain> <f1b83f75b974f68ef09929b5170af559e89104f4.camel@decadent.org.uk> <153468237179.2109.17235396617938097509.reportbug@localhost.localdomain> <f1b83f75b974f68ef09929b5170af559e89104f4.camel@decadent.org.uk> |
| Xref | csiph.com linux.debian.bugs.dist:913836 linux.debian.kernel:61877 |
Cross-posted to 2 groups.
Show key headers only | View raw
21.08.18 02:57, Ben Hutchings пише: > Control: notfound -1 0.131ubuntu8 > Control: found -1 0.132 > Control: tag -1 wontfix > > On Sun, 2018-08-19 at 15:39 +0300, Nazar Mokrynskyi wrote: >> Package: initramfs-tools >> Version: 0.131ubuntu8 >> Severity: wishlist >> >> >> Hi, >> I'd like to have fully encrypted system with partition table inside >> of LUKS container. It is easier to manage for me than multi-layer >> LVM. > LVM inside LUKS (I don't know why you call it multi-layer LVM) is well > supported in Debian, so I find this statement surprising. I know it is supported and expressed this awareness initially. I call it multi-layer because it has concepts of VGs, PVs and LVs, which are not straightforward to use, I know this is not technically correct, sorry about that. For instance, I was recently moving my fully encrypted Ubuntu (LVM on top of LUKS) from 500GB HDD to 256GB SSD. It was a painful and risky operation with no support from graphical utilities. I did it successfully, but I'd like to not doing this ever again. Which is why I found regular partition table much easier to use - I can just open it with GParted, shrink partitions, move them to the beginning of the disk and `dd` as much of it as I need. Easy. > What's more, Linux block drivers have to opt in to supporting > partitions, and dm-crypt doesn't do that. So the kernel doesn't look > for a partition table on a dm-crypt device. The primary issue for me is that LUKS container can contain a valid partition table and I can add a hook for initramfs to recornize it, but because cryptsetup integration checks for known partitions an doesn't find any, it closes LUKS container immediately with "unknown fstype, bad password or options?". This is extemely inconvenient and requires me to edit initramfs's files, wich will be reverted on upgrades, and I'd like to avoid it by having native support so this use case. >> However, there are 2 issues with this described here: >> https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1786688 >> >> The first issue is that after decryption of LUKS container there is a >> filesystem check and `get_fstype` function returns `undefined` for >> any partition table. >> >> I'd like it to return `pttable` or something similar instead, so that >> after decryption it will not lock container back with "unknown >> fstype, bad password or options?". > [...] > > I think the current behaviour of get_fstype is correct. It doesn't > print any error message; it just tells the caller whether a filesystem > was detected and if so what type it is. It's up to the caller whether > to treat a failure as fatal, or to check for a partition table as well. Well, I think technically LVM is not a file system either, but `get_fstype` returns `lvm` for it. Why not returning `pttable` too, indicating that it is not a garbage inside of it? Or do you suggest that cryptsetup integration needs to be adjusted instead? > > Ben. > Sincerely, Nazar Mokrynskyi github.com/nazar-pc
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