Portage of **sdm-cryptconfig**, questions. #352
Replies: 2 comments 10 replies
-
|
As you've seen, sdm-cryptconfig creates the script sdmcryptfs, which is run in the initramfs to do the encryption. sdmcryptfs in versions prior to V13.5 was definitely V1. It worked but had some issues. In V13.5 I completely redid sdmcryptfs and it's significantly better now, using a technique that I just used in the new yubikey support. TLDR; old code that should have removed. Thanks for pointing it out. 👍 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks again for your help in this portage project. So before I actually code this, I converted sdm-cryptconfig into a human "readable" steps to do just the encryption (xchacha20) with (at the moment) no options possible. Let me know if I forgot something (of course the specific for MX I'll handle it ) Required Linux packages
Config initramfs/etc/initramfs-tools/initramfs.conf
Create luks-hooks/etc/initramfs-tools/hooks/luks-hooks Modify nodules/etc/initramfs-tools/modules
Modify initramfs.conf/etc/initramfs-tools/initramfs.conf
Update initramfsupdate-initramfs -uupdate cmdline.txt/boot/firmware/cmdline.txt
Not sure about update fstab
update crypttab
a command that will run after reboot to rebuild (again) initramfs and rebootmv /etc/initramfs-tools/hooks/luks-hooks /etc/initramfs-tools/hooks/.sdm.luks-hooks.oldWipe line that contains
write the outcome into /etc/initramfs-tools/hooks/luks-hooks chmod 755 /etc/initramfs-tools/hooks/luks-hooks
update-initramfs -uDo I miss something ? Thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @gitbls ,
As said I'm figuring out how work sdm-cryptconfig
What does the line 350
It only set the variable kskip and create the file /usr/bin/sdmluksunlock if the user selected to not have a password ? is that right ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions