Managing Alpine Linux » History » Version 5
Nico Schottelius, 07/03/2020 01:23 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 | 5 | Nico Schottelius | * Add valid DNS servers to */etc/resolv.conf* |
| 22 | 1 | Nico Schottelius | ** In our case: for instance @nameserver 2a0a:e5c0:2:a::a@ |
| 23 | 5 | Nico Schottelius | * Test pinging: @ping ungleich.ch@ |
| 24 | 2 | Nico Schottelius | |
| 25 | 1 | Nico Schottelius | h2. Installing with encrypted root filesystem |
| 26 | 3 | Nico Schottelius | |
| 27 | * apk add cryptsetup |
||
| 28 | * abort setup-alpine |
||
| 29 | * mounting manually the crypted device |
||
| 30 | * switching to setup-disk /mnt |
||
| 31 | * bind mounting the dev/sys/proc/efivars into /mnt |
||
| 32 | * modifying /etc/mkinitfs/mkinitfs.conf to include cryptsetup AND nvme! |
||
| 33 | * running mkinitfs |
||
| 34 | * modify /etc/default/grub |
||
| 35 | * apk add efibootmgr in the chroot |
||
| 36 | * run grub-install --efi-directory=/boot |
||
| 37 | * apk add dhcpcd |
||
| 38 | * grub-mkconfig > /boot/grub/grub.cfg |
||
| 39 | * setup root password in chroot |
||
| 40 | * post reboot: switch repos to edge (required for variety of packages) |