Managing Alpine Linux » History » Version 7
Nico Schottelius, 07/03/2020 01:52 PM
1 | 1 | Nico Schottelius | h1. Managing Alpine Linux |
---|---|---|---|
2 | |||
3 | 6 | Nico Schottelius | {{toc}} |
4 | |||
5 | 1 | Nico Schottelius | h2. Create a UEFI bootable usb stick |
6 | |||
7 | 2 | Nico Schottelius | * Download the alpine iso |
8 | * Create one fresh new partition on the USB stick - NEEDS TO BE GPT |
||
9 | ** partition type must be EFI (ef00) |
||
10 | * Format the partition with mkfs.vfat |
||
11 | * mount the ISO (mount -o loop /path/to/iso /somewhere) |
||
12 | * mount the USB stick (mount /dev/sdX1 /somewhere_else) |
||
13 | ** copy files from the alpine ISO: @cd /somewhere; tar c . | ( cd /somewhere_else; tar xv ; sync)@ |
||
14 | * umount the usb stick |
||
15 | * umount the ISO |
||
16 | |||
17 | You can now use the USB stick for UEFI booting. |
||
18 | |||
19 | 4 | Nico Schottelius | h2. Installing in IPv6 only networks |
20 | |||
21 | * Select DHCP |
||
22 | * After it acquires an IP address stop and change to a different console |
||
23 | 5 | Nico Schottelius | * Add valid DNS servers to */etc/resolv.conf* |
24 | 1 | Nico Schottelius | ** In our case: for instance @nameserver 2a0a:e5c0:2:a::a@ |
25 | 5 | Nico Schottelius | * Test pinging: @ping ungleich.ch@ |
26 | 2 | Nico Schottelius | |
27 | 1 | Nico Schottelius | h2. Installing with encrypted root filesystem |
28 | 3 | Nico Schottelius | |
29 | * apk add cryptsetup |
||
30 | * abort setup-alpine |
||
31 | * mounting manually the crypted device |
||
32 | * switching to setup-disk /mnt |
||
33 | * bind mounting the dev/sys/proc/efivars into /mnt |
||
34 | * modifying /etc/mkinitfs/mkinitfs.conf to include cryptsetup AND nvme! |
||
35 | * running mkinitfs |
||
36 | 7 | Nico Schottelius | * install grub-efi |
37 | 3 | Nico Schottelius | * modify /etc/default/grub |
38 | * apk add efibootmgr in the chroot |
||
39 | * run grub-install --efi-directory=/boot |
||
40 | * apk add dhcpcd |
||
41 | * grub-mkconfig > /boot/grub/grub.cfg |
||
42 | * setup root password in chroot |
||
43 | * post reboot: switch repos to edge (required for variety of packages) |