You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Fedora 45, and luks encryption.
I didn't find the need to follow any linux-surface guidance in this area.
The linux-surface peoject seems to opt to document the 'entirety' of the distros' installation processes, where this doesn't seem to be too necessary in most cases. In fact this has caused me problems as I have sometimes struggled briefly to find the actual linux-surface specific guidance I'm after, repeatedly bumping into the general 'beginners guid to how to install linux Fedora generally guidance'
I suspect that the linux-surface guidance for disk encryption is very similar to this. It doesn't really require linux-surface specific guidance, and in fact the distro's own guidance is probably more detailed, complete and powerful.
The main issue I forsee with drive encryption though is that its the sort of thing that is probably very hard to convert to 'after' the fact? I haven't tried. For me I always 'installed' my Fedora to a LUKS encrypted volume right out of the anaconda wizard.
The only area I forsee being linux-surface specific, is the problem of Fedora out of the box using initramfs, which is installed to a 'non' encrypted volume. Intrinsically valuable user data isn't stored there, so in that respect the lack of encryption isn't a problem. However, anyone who was able to sit infront of your device, if you haven't also locked your BIOS and its boot configuration, could boot another OS of USB and write subverted pre-kernel files into the initramfs, which any kernel loaded thereafter, is at the mercy of .
The normal answer to this is to use a Unified Kernel Image. For which yes liux-surface does now pose some problems. But these problemsmostly come in the form of having to do the same work whether you are opting for Arch of Fedora, its just that Fedora has a clear idea of 'standard-out-the-box' install, and this is no longer that.
My recommendation.
Forget about linux-surface to start.
Configure UEFI Bios for Secure Boot 'Microsoft & Third Party'
Install Fedora as normal, encrypted with password LUKS volume. Get that up and running.
Turn off secure boot in UEFI
Then install Fedora linux-surface Kernel.
Follow the linux-surface instructions for Secure Boot, mokutil etc.
Reenable Secure boot Microsot & Theird party, make sure everything is working.
Now add TPM-SecureBootState+PIN as your LUKS unlock method (this part of mitigating the initramfs problem) , and make sure to also configure a systemd-cryptenroll --recovery-key!
Make sure both of the above are working and remove the 'password' method from your unlock. Combined these are your mitigation for initramfs not being encrypted.
Then you can even further mitigate the initramfs matter, by ensuring you have boot a password on your surface's UEFI bios (make sure you never loose/forget it, as the is NO WAY to reset it if you do. It's replace a motherboard at best if you do, or e-waste the whole device). And configure that BIOS not to allow boot from USB (or network).
Honestly, if you are confident that noone is going to get unatended access to your device to install a malicious initramfs, and then hand it back to unbeknown to you, then protecting initramfs by blocking boot from USB, is arguably being a bit paranoid. If your device is stolen, and your using only TPM+PIN and recovery key with secure boot, then an unprotected initramfs, isn't going to help them get into your actual data. It's only once a compromised initramfs device is handed back to you, for you to then unlock with your PIN, that the problem begins. That's not going to happen unless unless you are a high value target worth going to that much effort over. In which case, downloa the linux-surface source code, and build your own UKI kernel using it.
NB: Honestly, every mobile device should always have at least a password on the BIOS. Because if you don't, then any casual malicios actor who does it just for kicks, who gets their hands on you device for ten minutes can boot into our BIOS, maybe sabotage its settings or not, but put a password on themselves, and then like I just said, eventually its just e-waste to you from then on.
Activity
orthogonaleety commentedon Nov 30, 2026
hi @BumpyJumpy120
I use Fedora 45, and luks encryption.
I didn't find the need to follow any linux-surface guidance in this area.
The linux-surface peoject seems to opt to document the 'entirety' of the distros' installation processes, where this doesn't seem to be too necessary in most cases. In fact this has caused me problems as I have sometimes struggled briefly to find the actual linux-surface specific guidance I'm after, repeatedly bumping into the general 'beginners guid to how to install linux Fedora generally guidance'
I suspect that the linux-surface guidance for disk encryption is very similar to this. It doesn't really require linux-surface specific guidance, and in fact the distro's own guidance is probably more detailed, complete and powerful.
I recommend having a look here https://docs.fedoraproject.org/en-US/quick-docs/encrypting-drives-using-LUKS/ .
The main issue I forsee with drive encryption though is that its the sort of thing that is probably very hard to convert to 'after' the fact? I haven't tried. For me I always 'installed' my Fedora to a LUKS encrypted volume right out of the anaconda wizard.
The only area I forsee being linux-surface specific, is the problem of Fedora out of the box using initramfs, which is installed to a 'non' encrypted volume. Intrinsically valuable user data isn't stored there, so in that respect the lack of encryption isn't a problem. However, anyone who was able to sit infront of your device, if you haven't also locked your BIOS and its boot configuration, could boot another OS of USB and write subverted pre-kernel files into the initramfs, which any kernel loaded thereafter, is at the mercy of .
The normal answer to this is to use a Unified Kernel Image. For which yes liux-surface does now pose some problems. But these problemsmostly come in the form of having to do the same work whether you are opting for Arch of Fedora, its just that Fedora has a clear idea of 'standard-out-the-box' install, and this is no longer that.
My recommendation.
Forget about linux-surface to start.
Configure UEFI Bios for Secure Boot 'Microsoft & Third Party'
Install Fedora as normal, encrypted with password LUKS volume. Get that up and running.
Turn off secure boot in UEFI
Then install Fedora linux-surface Kernel.
Follow the linux-surface instructions for Secure Boot, mokutil etc.
Reenable Secure boot Microsot & Theird party, make sure everything is working.
Now add TPM-SecureBootState+PIN as your LUKS unlock method (this part of mitigating the initramfs problem) , and make sure to also configure a systemd-cryptenroll --recovery-key!
Make sure both of the above are working and remove the 'password' method from your unlock. Combined these are your mitigation for initramfs not being encrypted.
Then you can even further mitigate the initramfs matter, by ensuring you have boot a password on your surface's UEFI bios (make sure you never loose/forget it, as the is NO WAY to reset it if you do. It's replace a motherboard at best if you do, or e-waste the whole device). And configure that BIOS not to allow boot from USB (or network).
Honestly, if you are confident that noone is going to get unatended access to your device to install a malicious initramfs, and then hand it back to unbeknown to you, then protecting initramfs by blocking boot from USB, is arguably being a bit paranoid. If your device is stolen, and your using only TPM+PIN and recovery key with secure boot, then an unprotected initramfs, isn't going to help them get into your actual data. It's only once a compromised initramfs device is handed back to you, for you to then unlock with your PIN, that the problem begins. That's not going to happen unless unless you are a high value target worth going to that much effort over. In which case, downloa the linux-surface source code, and build your own UKI kernel using it.
NB: Honestly, every mobile device should always have at least a password on the BIOS. Because if you don't, then any casual malicios actor who does it just for kicks, who gets their hands on you device for ten minutes can boot into our BIOS, maybe sabotage its settings or not, but put a password on themselves, and then like I just said, eventually its just e-waste to you from then on.