-
Notifications
You must be signed in to change notification settings - Fork 117
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
[feat-req] Offer disk encryption (LUKS) #137
Comments
Workaround for now is to create a rescue-installation on a USB-connected device, boot from that and then encrypt: https://davidalger.com/posts/fedora-asahi-remix-on-apple-silicon-with-luks-encryption/ . |
Thanks for sharing your guide! I didn’t see that in time and went a slightly different route, re-creating the root file system from a tar archive. That worked as well, but I had to fix SELinux before the system would boot. Here’s my raw transcript in case it helps anyone else: asahi linux encryption transcriptCreate a tar archive of all mounted file systems:
(While /home and /boot are subvolumes of the same file system, create live USB stick: https://github.com/leifliddy/asahi-fedora-usb overwrite root file system with encrypted version:
restore the backups from earlier:
edit /etc/default/grub to include rd.luks.uuid and make the menu appear for easier troubleshooting:
Then, update the GRUB config:
edit /etc/fstab to update the root file system UUID:
re-generate initramfs:
arrange for SELinux to be re-labeled next boot:
see also https://docs.fedoraproject.org/en-US/quick-docs/selinux-changing-states-and-modes/
in GRUB, boot with I would definitely welcome an option to enable full disk encryption in the Asahi installer over this complicated process :) |
FWIW, I think there would already be benefit from having the reencode or the backup/encrypt/restore scripts here on github, so we as community can send pull requests. For example, the reencode-script can be misunderstood in saying "This will destroy everything on the partition, please be careful!", while in reality (minus potential bugs in the tools) the operation is really reencoding, and nothing is lost. |
That would be awesome! LUKS2 by default |
that's the only thing that stops me from using Asahi as a daily driver :) |
@buchpat If there is something really preventing you from doing it manually as per above linked docs, please bring it up here. By all known so far: while it would be more convenient to have directly in the installer, it's possible to be done manually and only costs additional time (and a free usb attachable storage device). |
@christianhorn I am unable to get a usb boot in order to do the workaround. The I was able to build it and install on a few usbs, but u-boot won't recognize any of them. Error reading cluster Are there any more recent guides on setting up a usb drive with asahi fedora? |
@trickpattyFH20 Fair enough.. I had done this a year ago. I used a USB-C connected NVMe enclosure for better performance than most USB-sticks, and I did not run into compat issues by then. If someone has a stick setup, offering that as image might help a bit already. |
I use this script to encrypt the installation with one command: https://github.com/osx-tools/asahi-encrypt As in recommendations in README, I installed a 16G Asahi minimal system at the end of the disk and encrypted my main installation from there. No need to mess with USB sticks, although you can run it from USB. It works! I tested it multiple times. |
It would be good to offer disk encryption (as an option, obviously).
The text was updated successfully, but these errors were encountered: