Re: Support for LUKS-encrypted filesystems

Bruno Cornec <[email protected]> Wed, 6 Feb 2019 18:20:49 +0100
Newsgroups gmane.linux.mondo.devel
Message-ID <[email protected]>
Hello,

Philippe Andersson said on Mon, Feb 04, 2019 at 02:44:30PM +0100:
>> However, it won't recreate crypted FS at restore time.
>That's what I was afraid of, indeed. After having booted the machine on
>the newly generated ISO (in "expert" mode), I called "mr-mount-me" just
>to check whether I could access the filesystems on the HDD (those are
>still intact, I've not attempted any restore yet). The unencrypted
>filesystem (/) mounted fine and I could access it as expected. But all
>the encrypted ones failed to mount with error messages similar to the
>following one:
>
>-----------------------<cut>--------------------------
>mount: /mnt/RESTORING/home: special device /dev/dm-8 does not exist.
>Failed to mount /dev/dm-8
>I think I failed to mount /dev/dm-8
>-----------------------<cut>--------------------------

yep sounds correct due to the lack of support.

>Arguably, I could try to recreate the logical volumes and encrypted
>filesystems manually, and then recover the data in interactive mode, but
>"cryptsetup" doesn't seem to be part of the boot environment.

That's "easy" to deal with. Add to your /etc/mindi/deplist.txt file all the tools you need at restore time. 
You would also probably need a kernel module, so you should also add it to /etc/mindi/mindi.conf FORCE_MODS variable.

Then, if you tell me what steps you have to do at restore time, and alsoprovide the archive log, I could add that to what mindi does so it's performed more automatically.

>> As I see you're in Belgium, I'll be at Fosdem this week-end so feel
>> free to see me there if you're around yourself.
>I read your email only this morning, unfortunately. I'm really sorry I
>missed this opportunity to meet you face-to-face. It would have been my
>pleasure to treat you to a couple of Belgian beers ;-) I hope the
>occasion present itself again.

You're lucky, I'm not drinking beer, but eat wafles ;-
Hopefully see you another time.

Greetings,
Bruno.
-- 
HPE WW FLOSS Technology Strategist      http://www.hpe.com/engage/opensource
Open Source Profession, WW Linux Community Lead    http://github.com/bcornec
FLOSS projects:     http://mondorescue.org        http://project-builder.org
Musique ancienne?   http://www.musique-ancienne.org  http://www.medieval.org

_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
signature.asc (application/pgp-signature, 931 B)
-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJcWxdxXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwMDlCQTMwQkM2NDg4REIwMTk0RDAwQThD
Qzc2Mzg3MTNEQzczQTdGAAoJEMx2OHE9xzp/GfQP/0HVVU42MJM7YLQ9RTsHoabb
RHTvZV6rnHKoD1JYTM9mH9i0k0RuVI0p8nkeGN+dYWlhV3tcLfo0bvbrWQpbssLw
qLO6pnMgcqb5bndIF5osFz2sDg/sLxIXEbMxuh8T+aSiwMmRVCFOl3sT0M58XhDf
5IdbtAYR8Hd70ABQyvgUdWW5B7jpl7UzVq7UbL+IJJgUC4lkwiEromqbwNw7JAoB
kKuftT601WnlMJDM3ooiDxgO/o2bx1DTfihkxhB1qJxcT1Ty77u3pBzgDYvw2IUn
yg/fzSa5i2KZug0/6I1SgTBK/OwO0HlnWPkmaCQQG8kCE3s3ARFLzdgkEPOqfSB+
mmCVhvVuJEaWOWdCySmXIg+ej2t97C9l+OXtrtyULjU+7ufgCekdCoFJ+fZDCrVg
aEH0GGdFFgTMkQ2dOf8HArYWGtDLWlfw/XT5833eo0lwbY046ysh5ntYzrDqiG7b
4WVug+LLNbkRZniZvLzXtPqAaNnMnlVHHzrR07HZCoRsmVTYOB7XxeDBovn6ZTW+
ip5s3s6GeU5Vl/rkD1w5yjIJDJZdynKLApwcDyvlOsHCGAwWJnTTtCBhoKaDuBgz
XRSPhXlZT7jCEHTq6BACdn4fQb4Q7USRzKZ2Q39K8ikVzOfPG2fkSUoYQG5JGOfF
64WlN8PInWCvegiOlH7S
=CEJa
-----END PGP SIGNATURE-----