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


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

looking to use loop-AES with initramfs tools and root

Started byjohn terragon <jterragon@gmail.com>
First post2021-01-05 12:10 +0100
Last post2021-01-07 22:30 +0100
Articles 2 — 2 participants

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


Contents

  looking to use loop-AES with initramfs tools and root john terragon <jterragon@gmail.com> - 2021-01-05 12:10 +0100
    Re: looking to use loop-AES with initramfs tools and root Ben Hutchings <ben@decadent.org.uk> - 2021-01-07 22:30 +0100

#69056 — looking to use loop-AES with initramfs tools and root

Fromjohn terragon <jterragon@gmail.com>
Date2021-01-05 12:10 +0100
Subjectlooking to use loop-AES with initramfs tools and root
Message-ID<BtSnV-360-15@gated-at.bofh.it>
Hi.
I want to use loop-AES for my encrypted root partition (the real thing, not
the compatibility mode offered by cryptsetup to mount old loop-AES volumes)
and I'm looking to make it play nice with the initramfs tools.
Basically I just have to make initramfs scripts use a special version of losetup
(which is not going to be interfering with the one in the utils-linux package,
I'll just rename it losetup-aes or something) instead of cryptsetup.
I've yet to take a look at it but by the existence of the cryptsetup-initramfs
package I came to the conclusion that the initramfs tools are maybe written in
a modular fashion so that it's easy to plug-in support for something
different than cryptsetup.
So, I guess cryptsetup-initramfs is a good place to look into in order
to achieve my goal right?
Thanks
John

[toc] | [next] | [standalone]


#69087

FromBen Hutchings <ben@decadent.org.uk>
Date2021-01-07 22:30 +0100
Message-ID<BuL0Z-1IJ-5@gated-at.bofh.it>
In reply to#69056

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

On Tue, 2021-01-05 at 12:00 +0100, john terragon wrote:
> Hi.
> I want to use loop-AES for my encrypted root partition (the real thing, not
> the compatibility mode offered by cryptsetup to mount old loop-AES volumes)
> and I'm looking to make it play nice with the initramfs tools.

I don't understand why you want to do this the hard way.

> Basically I just have to make initramfs scripts use a special version of losetup
> (which is not going to be interfering with the one in the utils-linux package,
> I'll just rename it losetup-aes or something) instead of cryptsetup.
> I've yet to take a look at it but by the existence of the cryptsetup-initramfs
> package I came to the conclusion that the initramfs tools are maybe written in
> a modular fashion so that it's easy to plug-in support for something
> different than cryptsetup.
> So, I guess cryptsetup-initramfs is a good place to look into in order
> to achieve my goal right?

So long as this is just for a local package, sure.

I can't speak for the cryptsetup maintainer, but I wouldn't expect
patches to support the old loop-aes to be accepted into the official
package.

Ben.

-- 
Ben Hutchings
A free society is one where it is safe to be unpopular.
                                                      - Adlai Stevenson

[toc] | [prev] | [standalone]


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


csiph-web