2022-02-26

alpineLinux: Notebook Installation on encrypted Partitions

#software

I'm toying with alpine linux since a while. I am truely impressed by it's slim footprint on the disk. So I have tried it on a Dell Notebook as a "sys" install (everything on disk). Needless to say, it worked like a charm. But how about adding uefi/grub boot and disk encryption? While reading up on available documentation, I came across a detailed post at wejn.org. The author (Michal Jirků?) makes two points:

Now that shell script is full of wonders: using nvme disks; using zfs; using software RAID (mdadm) for the non-zfs parts; and on, all the way to using secure boot with his own keys ... what a ride.

https://wejn.org/2021/01/alpinelinux-secure-boot-with-full-encryption/

This bit really triggered my interest:

There were quite a number of puzzle pieces, which I had been searching before, everything in one place. Fabulous!

So I set out to install alpine linux on a Dell Latitude E6230 with a similar structure:

The commands to achieve this are listed below. It's not strictly a shell script. Be sure to adapt sizes and key material to your liking. I did repeat this installation on another notebook. Everything worked except for the secureboot step. So I tried another notebook (Dell Latitude E7470) and it worked on the first attempt. So either I did some mistake or omission, or that particular UEFI did not successfully replace the keys.

If you try this, don't follow it blindly! I don't want to hear that you bricked your system. Nonetheless, have the appropriate amount of fun!

Thanks to Michal and others for all the documentation!

Cheers,

~ew

https://alpinelinux.org/

Home

Proxied content from gemini://ew.srht.site/en/2022/20220226-alpine-install.gmi (external content)

Gemini request details:

Original URL
gemini://ew.srht.site/en/2022/20220226-alpine-install.gmi
Status code
Success
Meta
text/gemini
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.