Menu

Create encrypted LVM 'sys' aka 'classic' install

Overview

Use modified ‘setup-alpine’ procedure

Notes

Commands

# Encrypted LVM
DISKOPTS="-eL -m sys <disk-device>" setup-alpine

where <disk-device> is an entire disk (not a partition), such as /dev/sda (typical x86_64 system). With x86_64 systems be careful though, you want the hard disk(s) not the boot media (which maybe a /dev/sdX disk, including a chance of being /dev/sda).

NB: For the Raspbery Pi you must omit <disk-device> and enter y when prompted whether to use the boot media (/boot/mmcblk0p1) and to enter y again for the prompt on whether to erase an use the the entire disk (mmcblk0). This is because you will be erasing the boot media and replacing it with a ‘classic’ OS install. This does mean the process will be interactive at that point, because setup-alpine does not currently have a fully automated way to achieve the goal of replacing the boot install with the ‘sys’ mode install.