-
-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: full disk/ root encryption #1032
Comments
I run ubuntu with root patrition on btrfs. Is possible to do it manually, if /boot is not encrypted on separate partition P.S. Also, I personally made a simple systemd-script that updates dtb/dtbo in /boot after startup if they have changed and reboots sbc |
@Aelliari did you encrypt after burning the image from this repo? I was thinking of an easy way: encryption will be achieved via burning itself. Would you mind sharing some scripts in your case? |
Sorry, I partitioned the disk, deployed the image, and set the mount points completely manually. I can give you an example of what and how to fix in the configuration files, I can give you my systemd unit keeping dtb/dtbo up to date in case of an update, but I didn't prepare scripts for automated installation. I guess I could try to make an automated script, but I'm not ready to do that today |
Whenever you have some time, could you provide detailed steps for this? Your earlier explanation went a bit over my head. I'm okay with manual operations. It seems you're the only person online who has managed to get LUKS working with this image! Something like this guide would be great: https://codeberg.org/keks24/raspberry-pi-luks/src/branch/debian_10_buster#encrypting-the-root-partition-manually Thanks a lot! |
Also interested in this |
I am trying to get a btrfs root like you said you have working. I got a working ext4 root on NVMe so I know u-boot is setup for SPI booting. I then replaced the ext4 root with a btrfs root, moved /boot to a separate ext4 partition, updated /etc/fstab on the btrfs filesystem to show btrfs root and ext4 /boot with correct UUIDs, then chrooted to the btrfs root and ran u-boot-update. I can see the UUID of extlinux.conf has the btrfs UUID so it definitely got updated. However, the OPI5 gets stuck in a boot loop (nothing on screen) when I try to boot. @Aelliari Can you provide some tips on what else I need to do? Thanks! |
@jsiddall path to dtb/dtbo in extinux.conf set correctly?
|
Thanks for the advice! I did try putting rk3588s-orangepi-5.dtb in the U_BOOT_FDT line in the /etc/default/u-boot file, and also in the root of the /boot filesystem, but nothing showed up in the extlinux.conf when I ran the u-boot-update. So I manually put an entry in the extlinux,conf file but, of course, that didn't work. Hmmm... I might just follow the path of least resistance and keep a small root on ext4 and add a btrfs on another partition to hold all the useful stuff. |
@jsiddall maybe this help you My fstree:├── bin -> usr/bin /etc/default/u-boot
/usr/sbin/u-boot-update
P.S. /boot is a separate EFI partition. I leave it as ext4 |
Thanks for the details, very helpful. I was missing the overlay (I thought that was optional?) but I need to figure out what that should be for a Pi 5. I also didn't have the patch on u-boot update. This should get me further. |
Yep, overlay it’s optional, I use it for FAN control. if you don't use overlays you don't need it |
Got it, thanks for the clarification! |
Feature Description
Is it possible to support Luks encrypted full disk encryption? Like what Armbian did: armbian/build#947
The text was updated successfully, but these errors were encountered: