Project

General

Profile

Managing Alpine Linux » History » Version 4

Nico Schottelius, 07/03/2020 01:21 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 4 Nico Schottelius
h2. Installing in IPv6 only networks
18
19
* Select DHCP
20
* After it acquires an IP address stop and change to a different console
21
* Add valid DNS servers to /etc/resolv.conf
22
** In our case: for instance @nameserver 2a0a:e5c0:2:a::a@
23 2 Nico Schottelius
24 1 Nico Schottelius
h2. Installing with encrypted root filesystem
25 3 Nico Schottelius
26
* apk add cryptsetup
27
* abort setup-alpine
28
* mounting manually the crypted device
29
* switching to setup-disk /mnt
30
* bind mounting the dev/sys/proc/efivars into /mnt
31
* modifying /etc/mkinitfs/mkinitfs.conf to include cryptsetup AND nvme!
32
* running mkinitfs
33
* modify /etc/default/grub
34
* apk add efibootmgr in the chroot
35
* run grub-install --efi-directory=/boot
36
* apk add dhcpcd
37
* grub-mkconfig > /boot/grub/grub.cfg
38
* setup root password in chroot
39
* post reboot: switch repos to edge (required for variety of packages)