repart: Do offline encryption instead of online
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 9 Oct 2022 18:46:59 +0000 (20:46 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 15 Nov 2022 19:07:54 +0000 (20:07 +0100)
commit48a09a8fff480aab9a68e95e95cc37f6b1438751
treee6fcc7e9f49fd5c37ed9b73f2e885415336234c3
parent98e0456ec04c2b210291f41f6d8f8527263e0c67
repart: Do offline encryption instead of online

Offline encryption can be done without mounting the luks device. For
now we still use loop devices to split out the partition we want to
write to but in a later commit we'll replace this with a regular file.

For offline encryption, we need to keep 2x the luks header size space
free at the end of the partition, so this means our encrypted partitions
will be 16M larger than before.
meson.build
src/partition/repart.c
src/shared/cryptsetup-util.c
src/shared/cryptsetup-util.h