Managing Alpine Linux » History » Version 3
Nico Schottelius, 07/03/2020 01:19 PM
| 1 | 1 | Nico Schottelius | h1. Managing Alpine Linux |
|---|---|---|---|
| 2 | |||
| 3 | h2. Create a UEFI bootable usb stick |
||
| 4 | |||
| 5 | 2 | Nico Schottelius | * Download the alpine iso |
| 6 | * Create one fresh new partition on the USB stick - NEEDS TO BE GPT |
||
| 7 | ** partition type must be EFI (ef00) |
||
| 8 | * Format the partition with mkfs.vfat |
||
| 9 | * mount the ISO (mount -o loop /path/to/iso /somewhere) |
||
| 10 | * mount the USB stick (mount /dev/sdX1 /somewhere_else) |
||
| 11 | ** copy files from the alpine ISO: @cd /somewhere; tar c . | ( cd /somewhere_else; tar xv ; sync)@ |
||
| 12 | * umount the usb stick |
||
| 13 | * umount the ISO |
||
| 14 | |||
| 15 | You can now use the USB stick for UEFI booting. |
||
| 16 | |||
| 17 | |||
| 18 | 1 | Nico Schottelius | h2. Installing with encrypted root filesystem |
| 19 | 3 | Nico Schottelius | |
| 20 | * apk add cryptsetup |
||
| 21 | * abort setup-alpine |
||
| 22 | * mounting manually the crypted device |
||
| 23 | * switching to setup-disk /mnt |
||
| 24 | * bind mounting the dev/sys/proc/efivars into /mnt |
||
| 25 | * modifying /etc/mkinitfs/mkinitfs.conf to include cryptsetup AND nvme! |
||
| 26 | * running mkinitfs |
||
| 27 | * modify /etc/default/grub |
||
| 28 | * apk add efibootmgr in the chroot |
||
| 29 | * run grub-install --efi-directory=/boot |
||
| 30 | * apk add dhcpcd |
||
| 31 | * grub-mkconfig > /boot/grub/grub.cfg |
||
| 32 | * setup root password in chroot |
||
| 33 | * post reboot: switch repos to edge (required for variety of packages) |