05-09-2021, 12:19 PM
The inhibit script is pretty cool, I'll have to give that a try.
For your item #5, I have that working, I have a 256GB SD card that is encrypted and auto-mounted. On mine I did not put the entire /home directory heirarchy there, just symlinked Documents, Videos, Downloads, Music, Photos to the card. (My thought was that if the SD card failed I'd not have access to those items but otherwise the phone would operate normally.)
What you need to do is generate a key file to use for unlocking the SD card and mounting it. The key file would be stored under /root which of course would not be available until you've already unlocked the eMMC at boot time. Then the appropriate entries are made in /etc/crypttab and /etc/fstab. There are a number of tutorials out there showing how to do this, such as:
https://www.golinuxcloud.com/mount-luks-...ion-linux/
For your item #5, I have that working, I have a 256GB SD card that is encrypted and auto-mounted. On mine I did not put the entire /home directory heirarchy there, just symlinked Documents, Videos, Downloads, Music, Photos to the card. (My thought was that if the SD card failed I'd not have access to those items but otherwise the phone would operate normally.)
What you need to do is generate a key file to use for unlocking the SD card and mounting it. The key file would be stored under /root which of course would not be available until you've already unlocked the eMMC at boot time. Then the appropriate entries are made in /etc/crypttab and /etc/fstab. There are a number of tutorials out there showing how to do this, such as:
https://www.golinuxcloud.com/mount-luks-...ion-linux/