<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Emolitor</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Emolitor"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Emolitor"/>
	<updated>2026-04-25T20:07:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Alpine_Linux_in_a_chroot&amp;diff=15669</id>
		<title>Alpine Linux in a chroot</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Alpine_Linux_in_a_chroot&amp;diff=15669"/>
		<updated>2019-01-13T17:52:51Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document explains how to set up an Alpine build environment in a chroot under a different Linux distro, such as Arch, Debian, Fedora, Gentoo, or Ubuntu. Once inside the chroot environment, you can build, debug, and run alpine packages. The guide can also be used to install Alpine Linux from a non-Alpine Linux livecd such as Ubuntu or System rescue CD.&lt;br /&gt;
&lt;br /&gt;
This example installation of Alpine Linux in a chroot will work with the latest release. But it&#039;s also possible to make a chroot with &#039;&#039;&#039;[[Edge|edge]]&#039;&#039;&#039; or older releases of Alpine Linux to test backports.&lt;br /&gt;
&lt;br /&gt;
You can also use script [https://github.com/alpinelinux/alpine-chroot-install/ alpine-chroot-install] that simplifies this process to just two commands. This script is useful especially on CI environment (e.g. Travis CI).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
For the base Alpine Linux you will only need around 6MB of free space; though to build packages you&#039;ll need at least 500 MB.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
The variables below: &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;${chroot_dir}&#039;&#039;&#039; = Should point to the chroot directory where you &lt;br /&gt;
*&#039;&#039;&#039;${mirror}&#039;&#039;&#039; = Should be replaced with [http://nl.alpinelinux.org/alpine/MIRRORS.txt one of the available Alpine Linux mirrors].&lt;br /&gt;
&lt;br /&gt;
== Set up APK ==&lt;br /&gt;
&lt;br /&gt;
{{Tip|In the command below, replace x86_64 with x86 if running on a 32 bit installation}}&lt;br /&gt;
&lt;br /&gt;
{{Warning|You will need Kernel version 2.6.22 or later to use apk-tools-static}}&lt;br /&gt;
&lt;br /&gt;
Download the latest apk static package (replace &amp;lt;tt&amp;gt;${version}&amp;lt;/tt&amp;gt; with actual version):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|wget ${mirror}/latest-stable/main/x86_64/apk-tools-static-${version}.apk}}&lt;br /&gt;
&lt;br /&gt;
.apk packages are just gzipped tarballs, unpack using:&lt;br /&gt;
{{Cmd|tar -xzf apk-tools-static-*.apk}}&lt;br /&gt;
&lt;br /&gt;
== Install the alpine base installation onto the chroot ==&lt;br /&gt;
&lt;br /&gt;
{{Cmd|./sbin/apk.static -X ${mirror}/latest-stable/main -U --allow-untrusted --root ${chroot_dir} --initdb add alpine-base}}&lt;br /&gt;
&lt;br /&gt;
== Set up the chroot ==&lt;br /&gt;
&lt;br /&gt;
Set up some devices in the chroot&lt;br /&gt;
{{Tip|Manually creating devices is not needed if you choose to mount /dev of the hosts in the chroot described later.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mknod -m 666 ${chroot_dir}/dev/full c 1 7&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/ptmx c 5 2&lt;br /&gt;
mknod -m 644 ${chroot_dir}/dev/random c 1 8&lt;br /&gt;
mknod -m 644 ${chroot_dir}/dev/urandom c 1 9&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/zero c 1 5&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/tty c 5 0}}&lt;br /&gt;
&lt;br /&gt;
If you need SCSI disc access:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mknod -m 666 ${chroot_dir}/dev/sda b 8 0&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sda1 b 8 1&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sda2 b 8 2&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sda3 b 8 3&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sda4 b 8 4&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sda5 b 8 5&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sda6 b 8 6&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sdb b 8 16&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sdb1 b 8 17&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sdb2 b 8 18&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sdb3 b 8 19&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sdb4 b 8 20&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sdb5 b 8 21&lt;br /&gt;
mknod -m 666 ${chroot_dir}/dev/sdb6 b 8 22}}&lt;br /&gt;
&lt;br /&gt;
A resolv.conf is needed for name resolution: &lt;br /&gt;
&lt;br /&gt;
{{Cmd|cp /etc/resolv.conf ${chroot_dir}/etc/&lt;br /&gt;
mkdir -p ${chroot_dir}/root}}&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t want to copy the resolv.conf from the local machine, you can create a new one using OpenDNS servers (or any other): &lt;br /&gt;
{{Cmd|echo -e &#039;nameserver 208.67.222.222\nnameserver 2620:0:ccc::2&#039; &amp;gt; ${chroot_dir}/etc/resolv.conf}}&lt;br /&gt;
&lt;br /&gt;
Set up APK mirror (replace &amp;lt;tt&amp;gt;${branch}&amp;lt;/tt&amp;gt; with the latest stable branch name, e.g. v3.3):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mkdir -p ${chroot_dir}/etc/apk&lt;br /&gt;
echo &amp;quot;${mirror}/${branch}/main&amp;quot; &amp;gt; ${chroot_dir}/etc/apk/repositories}}&lt;br /&gt;
&lt;br /&gt;
== Entering your chroot ==&lt;br /&gt;
At this point, Alpine has been succesfully installed onto the chroot directory. Before you chroot in you&lt;br /&gt;
will probably want to mount /proc and /sys in the chroot:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|mount -t proc none ${chroot_dir}/proc&lt;br /&gt;
mount -o bind /sys ${chroot_dir}/sys}}&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t want to create special device files yourself, mount the hosts device directory onto the chroot:&lt;br /&gt;
{{Cmd|mount -o bind /dev ${chroot_dir}/dev}}&lt;br /&gt;
&lt;br /&gt;
You can now chroot:&lt;br /&gt;
{{Cmd|chroot ${chroot_dir} /bin/sh -l}}&lt;br /&gt;
&lt;br /&gt;
To make the system actually bootable, we need to add some initscripts to appropriate runlevels:&lt;br /&gt;
{{Cmd|rc-update add devfs sysinit&lt;br /&gt;
rc-update add dmesg sysinit&lt;br /&gt;
rc-update add mdev sysinit&lt;br /&gt;
&lt;br /&gt;
rc-update add hwclock boot&lt;br /&gt;
rc-update add modules boot&lt;br /&gt;
rc-update add sysctl boot&lt;br /&gt;
rc-update add hostname boot&lt;br /&gt;
rc-update add bootmisc boot&lt;br /&gt;
rc-update add syslog boot&lt;br /&gt;
&lt;br /&gt;
rc-update add mount-ro shutdown&lt;br /&gt;
rc-update add killprocs shutdown&lt;br /&gt;
rc-update add savecache shutdown}}&lt;br /&gt;
&lt;br /&gt;
Alpine Linux has a great meta-package for building Alpine packages from source available called alpine-sdk. To install, run:&lt;br /&gt;
{{Cmd|apk add alpine-sdk}}&lt;br /&gt;
&lt;br /&gt;
If you are using Alpine as a Native build system you will have to make sure that chroot can run chmod. Add following to /etc/sysctl.conf&lt;br /&gt;
&lt;br /&gt;
 kernel.grsecurity.chroot_deny_chmod = 0&lt;br /&gt;
&lt;br /&gt;
Then run the following command&lt;br /&gt;
&lt;br /&gt;
{{Cmd|sysctl -p}}&lt;br /&gt;
&lt;br /&gt;
== Alpine Linux in a chroot on Fedora ==&lt;br /&gt;
&lt;br /&gt;
If you want to generate a chroot on a Fedora based system, you can use this [http://git.alpinelinux.org/cgit/user/fab/scripts/tree/alpine-chroot.sh script].&lt;br /&gt;
&lt;br /&gt;
{{Note|Maybe you are able to use this script on other distribution but this is not tested.}}&lt;br /&gt;
&lt;br /&gt;
== Alpine Linux aarch64 in a chroot on AWS Linux ==&lt;br /&gt;
If you want to generate a aarch64 chroot on most systems you can use this [https://gist.github.com/emolitor/0567e51c0ce04f4b025fc78d2cf0b4f1 script]. &lt;br /&gt;
&lt;br /&gt;
{{Note|I&#039;m currently using this to test my aarch64 packages but it should be useful for others.}}&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
== WARNING: Ignoring APKINDEX.xxxx.tar.gz ==&lt;br /&gt;
Make sure &amp;lt;tt&amp;gt;${chroot_dir}/etc/apk/repositories&amp;lt;/tt&amp;gt; is valid and inside the chroot run:&lt;br /&gt;
{{Cmd|apk update}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15657</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15657"/>
		<updated>2018-12-31T10:39:25Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Install the Keys and Enroll Hash */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 gunzip -c /path/to/shim-signed-0.2.tgz &amp;amp;#124; tar x --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/efi/boot&lt;br /&gt;
 cp /mnt/efi/boot/refind_x64.efi /mnt/efi/boot/grubx64.efi&lt;br /&gt;
 cp /mnt/efi/boot/shim.efi /mnt/efi/boot/bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt /mnt/efi/boot/grubx64.efi&lt;br /&gt;
 mv /mnt/efi/boot/grubx64.efi.signed /mnt/efi/boot/grubx64.efi&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt /mnt/boot/vmlinuz-vanilla&lt;br /&gt;
 mv /mnt/boot/vmlinuz-vanilla.signed /mnt/boot/vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
== Install the Keys and Enroll Hash ==&lt;br /&gt;
Insert the USB into the target PC and boot. When prompted select to enroll key, navigate to alpine_local.cer and add it. Then select enroll hash navigate to efi/boot/grubx64.efi select it and add the hash. Now reboot and given a bit of luck it should launch alpine. This step is a bit more complex than it needs to be due to the binary distribution of refind already being signed by the authors key. Once rEFInd is packaged it should simplify this step.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15656</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15656"/>
		<updated>2018-12-31T10:38:01Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Unmount the partition */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 gunzip -c /path/to/shim-signed-0.2.tgz &amp;amp;#124; tar x --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/efi/boot&lt;br /&gt;
 cp /mnt/efi/boot/refind_x64.efi /mnt/efi/boot/grubx64.efi&lt;br /&gt;
 cp /mnt/efi/boot/shim.efi /mnt/efi/boot/bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt /mnt/efi/boot/grubx64.efi&lt;br /&gt;
 mv /mnt/efi/boot/grubx64.efi.signed /mnt/efi/boot/grubx64.efi&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt /mnt/boot/vmlinuz-vanilla&lt;br /&gt;
 mv /mnt/boot/vmlinuz-vanilla.signed /mnt/boot/vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
== Install the Keys and Enroll Hash ==&lt;br /&gt;
Insert the USB into the target PC and boot. When prompted select to enroll key, navigate to alpine_local.cer and add it. Then select enroll hash navigate to efi/boot/grubx64.efi select it and add the hash. Now reboot and given a bit of luck it should launch alpine.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15655</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15655"/>
		<updated>2018-12-31T10:29:56Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Sign the Bootloader and kernel with your key */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 gunzip -c /path/to/shim-signed-0.2.tgz &amp;amp;#124; tar x --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/efi/boot&lt;br /&gt;
 cp /mnt/efi/boot/refind_x64.efi /mnt/efi/boot/grubx64.efi&lt;br /&gt;
 cp /mnt/efi/boot/shim.efi /mnt/efi/boot/bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt /mnt/efi/boot/grubx64.efi&lt;br /&gt;
 mv /mnt/efi/boot/grubx64.efi.signed /mnt/efi/boot/grubx64.efi&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt /mnt/boot/vmlinuz-vanilla&lt;br /&gt;
 mv /mnt/boot/vmlinuz-vanilla.signed /mnt/boot/vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15654</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15654"/>
		<updated>2018-12-31T10:27:56Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Install Shim and Certificate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 gunzip -c /path/to/shim-signed-0.2.tgz &amp;amp;#124; tar x --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/efi/boot&lt;br /&gt;
 cp /mnt/efi/boot/refind_x64.efi /mnt/efi/boot/grubx64.efi&lt;br /&gt;
 cp /mnt/efi/boot/shim.efi /mnt/efi/boot/bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15653</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15653"/>
		<updated>2018-12-31T10:27:20Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Copy signed shim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 gunzip -c /path/to/shim-signed-0.2.tgz &amp;amp;#124; tar x --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/efi/boot&lt;br /&gt;
 mv /mnt/efi/boot/refind_x64.efi /mnt/efi/bootgrubx64.efi&lt;br /&gt;
 mv /mnt/efi/boot/shim.efi /mnt/efi/boot/bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15652</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15652"/>
		<updated>2018-12-31T10:24:30Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Install Shim and Certificate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 gunzip -c /path/to/Downloads/shim-signed-0.2.tgz &amp;amp;#124; tar x --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/efi/boot&lt;br /&gt;
 mv /mnt/efi/boot/refind_x64.efi /mnt/efi/bootgrubx64.efi&lt;br /&gt;
 mv /mnt/efi/boot/shim.efi /mnt/efi/boot/bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15651</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15651"/>
		<updated>2018-12-31T10:23:15Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Copy signed shim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 gunzip -c /path/to/Downloads/shim-signed-0.2.tgz &amp;amp;#124; tar x --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv refind_x64.efi grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15650</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15650"/>
		<updated>2018-12-31T10:23:00Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Copy signed shim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 gunzip -c /path/to/Downloads/shim-signed-0.2.tgz &amp;amp;#124; tar x --strip-components=1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv refind_x64.efi grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15649</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15649"/>
		<updated>2018-12-31T10:20:00Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Copy signed shim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 gunzip -c /path/to/Downloads/shim-signed-0.2.tgz | tar x --strip-components=1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv refind_x64.efi grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15648</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15648"/>
		<updated>2018-12-31T10:19:46Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Copy signed shim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 gunzip -c /home/emolitor/Downloads/shim-signed-0.2.tgz | tar x --strip-components=1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv refind_x64.efi grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15647</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15647"/>
		<updated>2018-12-31T10:15:53Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Copy signed shim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 tar zxf --no-same-permissions /path/to/shim-signed-0.2.tgz&lt;br /&gt;
 cp }$HOME/Downloads/shim-signed/* .}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv refind_x64.efi grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15646</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15646"/>
		<updated>2018-12-31T10:09:10Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Download and install rEFInd */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind/* .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | tar zxf $HOME/Downloads/shim-signed-0.2.tgz -C $HOME/Downloads&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 cp }$HOME/Downloads/shim-signed/* .}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv refind_x64.efi grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15645</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15645"/>
		<updated>2018-12-31T10:07:18Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Download and install rEFInd */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip. There may be a more recent version of rEFInd available when you download.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 unzip /path/to/refind-bin-0.11.4.zip&lt;br /&gt;
 mv refind-bin-0.11.4/refind .&lt;br /&gt;
 rm -rf refind-bin-0.11.4}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | tar zxf $HOME/Downloads/shim-signed-0.2.tgz -C $HOME/Downloads&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 cp }$HOME/Downloads/shim-signed/* .}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv refind_x64.efi grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15644</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15644"/>
		<updated>2018-12-31T10:03:34Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Copy signed shim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip and assume it is stored in your users download directory. There may be a more recent version of rEFInd available when you download, just substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | unzip $HOME/Downloads/refind-bin-0.11.4.zip -d $HOME/Downloads&lt;br /&gt;
 cd /mnt/efi/boot&lt;br /&gt;
 cp -r $HOME/Downloads/refind-bin-0.11.4/refind/* .}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | tar zxf $HOME/Downloads/shim-signed-0.2.tgz -C $HOME/Downloads&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 cp }$HOME/Downloads/shim-signed/* .}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv refind_x64.efi grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15643</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15643"/>
		<updated>2018-12-31T10:02:23Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}} and $HOME. This will be different depending on your system. Substitute the paths in the examples below as necessary.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip and assume it is stored in your users download directory. There may be a more recent version of rEFInd available when you download, just substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | unzip $HOME/Downloads/refind-bin-0.11.4.zip -d $HOME/Downloads&lt;br /&gt;
 cd /mnt/efi/boot&lt;br /&gt;
 cp -r $HOME/Downloads/refind-bin-0.11.4/refind/* .}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | tar zxf $HOME/Downloads/shim-signed-0.2.tgz -C $HOME/Downloads&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 cp }$HOME/Downloads/shim-signed/* .}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv refind_x64.efi grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15642</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15642"/>
		<updated>2018-12-31T10:00:43Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and rEFInd. Unfortunately the version of GRUB that ships with ALpine Linux did not work and Gummiboot only worked on one of two machines I tested. I will submit a PR for a rEFInd package and update these instructions to simplify them given time.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout $HOME/alpine_local.key -out $HOME/alpine_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}Alpine Local CA/&amp;quot;&lt;br /&gt;
 openssl x509 -in $HOME/alpine_local.crt -out $HOME/alpine_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Download and install rEFInd ==&lt;br /&gt;
Download the binary zip file of rEFInd from http://www.rodsbooks.com/refind/getting.html. In this example we will use the current  version of rEFInd, refind-bin-0.11.4.zip and assume it is stored in your users download directory. There may be a more recent version of rEFInd available when you download, just substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | unzip $HOME/Downloads/refind-bin-0.11.4.zip -d $HOME/Downloads&lt;br /&gt;
 cd /mnt/efi/boot&lt;br /&gt;
 cp -r $HOME/Downloads/refind-bin-0.11.4/refind/* .}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz. In this example we  assume it is stored in your users download directory. Substitute the paths in the example below as necessary.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | tar zxf $HOME/Downloads/shim-signed-0.2.tgz -C $HOME/Downloads&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 cp }$HOME/Downloads/shim-signed/* .}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/alpine_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv refind_x64.efi grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/alpine_local.key --cert $HOME/alpine_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15641</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15641"/>
		<updated>2018-12-30T15:58:29Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Edit configuration files for boot loader */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Remove Grub and Install gummiboot ==&lt;br /&gt;
Install {{Pkg|gummiboot}}&lt;br /&gt;
{{Cmd | apk add gummiboot&lt;br /&gt;
 rm -rf /mnt/efi /mnt/boot/grub&lt;br /&gt;
 gummiboot install --path{{=}}/mnt --no-variables}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/EFI/Boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz &amp;amp;#124; tar xvz --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/$USER_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv BOOTX64.EFI grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/$USER_local.key --cert $HOME/$USER_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/$USER_local.key --cert $HOME/$USER_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Edit configuration files for boot loader ==&lt;br /&gt;
&lt;br /&gt;
We need to edit the loader.conf for gummiboot.&lt;br /&gt;
{{Cat | /mnt/loader/loader.conf |default alpine&lt;br /&gt;
timeout 4&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
We need to create alpine.conf in entries&lt;br /&gt;
{{Cat | /mnt/loader/entries/alpine.conf |title    Alpine Linux&lt;br /&gt;
linux    /boot/vmlinuz-vanilla&lt;br /&gt;
initrd   /boot/initramfs-vanilla&lt;br /&gt;
options  modloop{{=}}/boot/modloop-vanilla modules{{=}}loop,squashfs,sd-mod,usb-storage &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
We need to create mokmanager.conf in entries&lt;br /&gt;
{{Cat | /mnt/loader/entries/mokmanager.conf |title MokManager&lt;br /&gt;
efi /EFI/Boot/MokManager.efi&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15640</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15640"/>
		<updated>2018-12-30T14:54:58Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Edit configuration files for boot loader */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Remove Grub and Install gummiboot ==&lt;br /&gt;
Install {{Pkg|gummiboot}}&lt;br /&gt;
{{Cmd | apk add gummiboot&lt;br /&gt;
 rm -rf /mnt/efi /mnt/boot/grub&lt;br /&gt;
 gummiboot install --path{{=}}/mnt --no-variables}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/EFI/Boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz &amp;amp;#124; tar xvz --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/$USER_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv BOOTX64.EFI grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/$USER_local.key --cert $HOME/$USER_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/$USER_local.key --cert $HOME/$USER_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Edit configuration files for boot loader ==&lt;br /&gt;
&lt;br /&gt;
We need to edit the loader.conf for gummiboot.&lt;br /&gt;
{{Cat | /mnt/loader/loader.conf |default alpine&lt;br /&gt;
timeout 4&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
We need to create alpine.conf in entries,&lt;br /&gt;
{{Cat | /mnt/loader/entries/alpine.conf |title    Alpine Linux&lt;br /&gt;
linux    /boot/vmlinuz-vanilla&lt;br /&gt;
initrd   /boot/initramfs-vanilla&lt;br /&gt;
options  modloop{{=}}/boot/modloop-vanilla modules{{=}}loop,squashfs,sd-mod,usb-storage &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15639</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15639"/>
		<updated>2018-12-30T14:53:56Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Remove Grub and Install gummiboot ==&lt;br /&gt;
Install {{Pkg|gummiboot}}&lt;br /&gt;
{{Cmd | apk add gummiboot&lt;br /&gt;
 rm -rf /mnt/efi /mnt/boot/grub&lt;br /&gt;
 gummiboot install --path{{=}}/mnt --no-variables}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/EFI/Boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz &amp;amp;#124; tar xvz --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/$USER_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv BOOTX64.EFI grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/$USER_local.key --cert $HOME/$USER_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/$USER_local.key --cert $HOME/$USER_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Edit configuration files for boot loader ==&lt;br /&gt;
&lt;br /&gt;
We need create some configuration files for gummiboot.&lt;br /&gt;
&lt;br /&gt;
{{Cat | /mnt/loader/loader.conf |default alpine&lt;br /&gt;
timeout 4&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Cat | /mnt/loader/entries/alpine.conf |title    Alpine Linux&lt;br /&gt;
linux    /boot/vmlinuz-vanilla&lt;br /&gt;
initrd   /boot/initramfs-vanilla&lt;br /&gt;
options  modloop{{=}}/boot/modloop-vanilla modules{{=}}loop,squashfs,sd-mod,usb-storage &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15638</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15638"/>
		<updated>2018-12-30T14:48:42Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Remove Grub and Install gummiboot ==&lt;br /&gt;
Install {{Pkg|gummiboot}}&lt;br /&gt;
{{Cmd | apk add gummiboot&lt;br /&gt;
 rm -rf /mnt/efi /mnt/boot/grub&lt;br /&gt;
 gummiboot install --path{{=}}/mnt --no-variables}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/EFI/Boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz &amp;amp;#124; tar xvz --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim and Certificate ==&lt;br /&gt;
{{Cmd | cp $HOME/$USER_local.cer /mnt/EFI/Boot&lt;br /&gt;
 cd /mnt/EFI/Boot&lt;br /&gt;
 mv BOOTX64.EFI grubx64.efi&lt;br /&gt;
 mv shim.efi bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Sign the Bootloader and kernel with your key ==&lt;br /&gt;
{{Cmd | sbsign --key $HOME/$USER_local.key --cert $HOME/$USER_local.crt grubx64.efi&lt;br /&gt;
 mv grubx64.efi.signed grubx64.efi&lt;br /&gt;
 cd /mnt/boot&lt;br /&gt;
 sbsign --key $HOME/$USER_local.key --cert $HOME/$USER_local.crt vmlinuz-vanilla&lt;br /&gt;
 mv vmlinuz-vanilla.signed vmlinuz-vanilla}}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15637</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15637"/>
		<updated>2018-12-30T14:38:10Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Copy signed shim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Remove Grub and Install gummiboot ==&lt;br /&gt;
Install {{Pkg|gummiboot}}&lt;br /&gt;
{{Cmd | apk add gummiboot&lt;br /&gt;
 rm -rf /mnt/efi /mnt/boot/grub&lt;br /&gt;
 gummiboot install --path{{=}}/mnt --no-variables}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/EFI/Boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz &amp;amp;#124; tar xvz --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15636</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15636"/>
		<updated>2018-12-30T14:37:22Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Remove Grub and Install gummiboot ==&lt;br /&gt;
Install {{Pkg|gummiboot}}&lt;br /&gt;
{{Cmd | apk add gummiboot&lt;br /&gt;
 rm -rf /mnt/efi /mnt/boot/grub&lt;br /&gt;
 gummiboot install --path{{=}}/mnt --no-variables}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz &amp;amp;#124; tar xvz --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15635</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15635"/>
		<updated>2018-12-30T14:36:02Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
Install {{Pkg|gummiboot}}&lt;br /&gt;
{{Cmd | apk add gummiboot&lt;br /&gt;
 rm -rf /mnt/efi&lt;br /&gt;
 gummiboot install --path{{=}}/mnt --no-variables}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz &amp;amp;#124; tar xvz --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15634</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15634"/>
		<updated>2018-12-30T14:34:58Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Install gummiboot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
Install {{Pkg|gummiboot}}&lt;br /&gt;
{{Cmd | apk add gummiboot&lt;br /&gt;
 gummiboot install --path{{=}}/mnt --no-variables}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz &amp;amp;#124; tar xvz --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15633</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15633"/>
		<updated>2018-12-30T14:34:41Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
Install {{Pkg|gummiboot}}&lt;br /&gt;
{{Cmd | apk add gummiboot }}&lt;br /&gt;
{{Cmd | gummiboot install --path{{=}}/mnt --no-variables}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz &amp;amp;#124; tar xvz --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install Shim ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15632</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15632"/>
		<updated>2018-12-30T14:30:02Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Copy signed shim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz &amp;amp;#124; tar xvz --strip-components{{=}}1 --no-same-owner}}&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15631</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15631"/>
		<updated>2018-12-30T14:21:25Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: /* Copy signed shim */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt/efi/boot&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz | tar xvz --strip-components{{=}}1 }}&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15630</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15630"/>
		<updated>2018-12-30T14:20:59Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | cd $HOME&lt;br /&gt;
 openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
{{Cmd | cd /mnt&lt;br /&gt;
 wget -qO- http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz | tar xvz --strip-components{{=}}1 }}&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15629</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15629"/>
		<updated>2018-12-30T14:15:44Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
Download Matthew J. Garrett&#039;s signed shim from http://www.codon.org.uk/~mjg59/shim-signed/shim-signed-0.2.tgz&lt;br /&gt;
Extract it and copy MokManager.efi and shim.efi to /mnt/efi/boot&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15628</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15628"/>
		<updated>2018-12-30T14:12:14Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;&lt;br /&gt;
 openssl x509 -in &amp;quot;$USER&amp;quot;_local.crt -out &amp;quot;$USER&amp;quot;_local.cer -outform DER}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15627</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15627"/>
		<updated>2018-12-30T14:10:12Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd |  openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN{{=}}$USER/&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15626</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15626"/>
		<updated>2018-12-30T14:06:36Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
{{Cmd | openssl req -new -x509 -newkey rsa:2048 -keyout &amp;quot;$USER&amp;quot;_local.key -out &amp;quot;$USER&amp;quot;_local.crt -nodes -days 3650 -subj &amp;quot;/CN=$USER/&amp;quot; }}&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15625</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15625"/>
		<updated>2018-12-30T14:01:23Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Create MOK Key ==&lt;br /&gt;
&lt;br /&gt;
== Copy signed shim ==&lt;br /&gt;
&lt;br /&gt;
== Install gummiboot ==&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15624</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15624"/>
		<updated>2018-12-30T14:00:39Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15623</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15623"/>
		<updated>2018-12-30T13:59:46Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Creating a bootable Alpine Linux USB Stick from the command line ==&lt;br /&gt;
&lt;br /&gt;
This process applies to Alpine Linux 1.9.0 or later, and results in a &#039;&#039;&#039;run-from-ram&#039;&#039;&#039; style installation. &lt;br /&gt;
&lt;br /&gt;
{{Warning|This process can potentially totally or partly erase the contents of your hard drive. For this reason, it is recommended to do this procedure using VirtualBox rather than your own computer.}}&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
In order to follow this document, you will need:&lt;br /&gt;
* Alpine Linux CD-ROM ([[Downloads|Download]] a .iso file containing an Alpine release.)&lt;br /&gt;
* A USB drive (flash, external HD, card reader, etc.)&lt;br /&gt;
&lt;br /&gt;
=== Alpine Linux from 3.3.0 and later ===&lt;br /&gt;
&lt;br /&gt;
From Alpine Linux 3.3.0, the generated ISO&#039;s are a hybridISO, which means they contain a valid MBR and can be raw copied directly to the USB stick, Hard Drive (If you really know what you&#039;re doing), or burnt to a CD/DVD.&lt;br /&gt;
&lt;br /&gt;
The following &#039;&#039;&#039;dd&#039;&#039;&#039; instructions follow helpful guidance from https://wiki.voidlinux.eu/Live_Images wholly or in part.&lt;br /&gt;
&lt;br /&gt;
If the USB stick is in a Unix/Linux/OSX system, you will need to find out what the USB device is.  There are various utilities to determine the device name (e.g. {{Path|/dev/sdx}}) for your USB device.  One way is:&lt;br /&gt;
&lt;br /&gt;
 $ sudo fdisk -l&lt;br /&gt;
&lt;br /&gt;
If it is still unclear which is your USB&#039;s device name, in Linux you could try &amp;lt;code&amp;gt;sudo lsblk -a&amp;lt;/code&amp;gt; ;  or use {{Pkg|parted}} (&amp;lt;code&amp;gt;sudo parted -l&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Then, in order to dd the iso, ensure that your usb drive is &#039;&#039;&#039;not&#039;&#039;&#039; mounted, as various desktop environments automatically mount usb pen drives:&lt;br /&gt;
&lt;br /&gt;
 $ sudo umount /dev/sdx&lt;br /&gt;
&lt;br /&gt;
Next, change to the directory where your Alpine .iso file is located, for example:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/Downloads&lt;br /&gt;
&lt;br /&gt;
{{Warning|The following instruction will &#039;&#039;&#039;destroy&#039;&#039;&#039; data on the device being written to - be sure that you have identified your USB device name correctly first!}}&lt;br /&gt;
Then you can use &#039;&#039;&#039;dd&#039;&#039;&#039; to copy the iso to it.  Change &amp;lt;code&amp;gt;alpine.iso&amp;lt;/code&amp;gt; in the following command to the name of your &#039;&#039;&#039;.iso&#039;&#039;&#039; file; and change &amp;lt;code&amp;gt;/dev/sdx&amp;lt;/code&amp;gt; to the name of your pen drive&#039;s device name.  The following command may take a few minutes to execute:&lt;br /&gt;
  $ sudo dd if=alpine.iso of=/dev/sdx &amp;amp;&amp;amp; sync&lt;br /&gt;
&lt;br /&gt;
{{:Include:Copying Alpine to Flash|USB stick}}&lt;br /&gt;
&lt;br /&gt;
=== Slow USB Devices ===&lt;br /&gt;
Specifying the &#039;waitusb=X&#039; option at the end of the syslinux.cfg line might help with certain USB devices that take a bit longer to register. X stands for the amount of seconds kernel will wait before looking for the installation media.&lt;br /&gt;
 append initrd=/boot/grsec.gz alpine_dev=usbdisk:vfat modules=loop,cramfs,sd-mod,usb-storage quiet &#039;&#039;&#039;waitusb=3&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{:Include:Installing_Alpine_see_also}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_boot_USB&amp;diff=15622</id>
		<title>Create UEFI boot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_boot_USB&amp;diff=15622"/>
		<updated>2018-12-30T13:46:51Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.8.2-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_boot_USB&amp;diff=15621</id>
		<title>Create UEFI boot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_boot_USB&amp;diff=15621"/>
		<updated>2018-12-30T13:46:03Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: Undo revision 15618 by Emolitor (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.4.0-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15620</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15620"/>
		<updated>2018-12-30T13:45:24Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15619</id>
		<title>Create UEFI secureboot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_secureboot_USB&amp;diff=15619"/>
		<updated>2018-12-30T13:36:17Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: Created page with &amp;quot;test&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;test&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_boot_USB&amp;diff=15618</id>
		<title>Create UEFI boot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_boot_USB&amp;diff=15618"/>
		<updated>2018-12-30T13:35:56Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt &amp;amp;&amp;amp; uniso &amp;lt; /path/to/alpine-3.4.0-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Copy gummiboot efi binary ==&lt;br /&gt;
&lt;br /&gt;
{{note| Gummiboot has been forked in Alpine Linux since it has been [https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/ consumed by systemd upstream].}}&lt;br /&gt;
&lt;br /&gt;
UEFI will look for a {{Path|EFI/bootx64.efi}} as a fallback efi loader. We copy {{Path|gummibootx64.efi}} to this location.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkdir -p /mnt/EFI/Boot&lt;br /&gt;
 apk add gummiboot&lt;br /&gt;
 cp /usr/lib/gummiboot/gummibootx64.efi /mnt/EFI/Boot/bootx64.efi }}&lt;br /&gt;
&lt;br /&gt;
== Create configuration files for boot loader ==&lt;br /&gt;
&lt;br /&gt;
We need create some configuration files for gummiboot.&lt;br /&gt;
{{Cmd | mkdir -p loader/entries }}&lt;br /&gt;
&lt;br /&gt;
{{Cat | loader/loader.conf |default alpine&lt;br /&gt;
timeout 4&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The options are taken from {{Path|boot/syslinux/syslinux.cfg}}&lt;br /&gt;
&lt;br /&gt;
{{Cat | loader/entries/alpine.conf |title    Alpine Linux&lt;br /&gt;
linux    /boot/vmlinuz-hardened&lt;br /&gt;
initrd   /boot/initramfs-hardened&lt;br /&gt;
options  modloop{{=}}/boot/modloop-hardened modules{{=}}loop,squashfs,sd-mod,usb-storage quiet&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_boot_USB&amp;diff=15617</id>
		<title>Create UEFI boot USB</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_UEFI_boot_USB&amp;diff=15617"/>
		<updated>2018-12-30T13:35:41Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: Update instructions for modern Alpine images which already include grub-efi&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article explains how to create an UEFI boot USB with parted and gummiboot.&lt;br /&gt;
&lt;br /&gt;
In this example we will use {{Path|/dev/sdX}}. This will be different depending on your system.&lt;br /&gt;
&lt;br /&gt;
== Create GPT boot partition ==&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|parted}}&lt;br /&gt;
{{Cmd | apk add parted }}&lt;br /&gt;
&lt;br /&gt;
Create a single UEFI boot partitions.&lt;br /&gt;
{{warning| This will erase all content of your {{Path|/dev/sdX}}. Make sure that you use correct device.}}&lt;br /&gt;
&lt;br /&gt;
{{Cmd | parted --script /dev/sdX mklabel gpt&lt;br /&gt;
 parted --script --align{{=}}optimal /dev/sdX mkpart ESP fat32 1MiB 100%&lt;br /&gt;
 parted --script /dev/sdX set 1 boot on }}&lt;br /&gt;
&lt;br /&gt;
== Create fat32 filesystem ==&lt;br /&gt;
&lt;br /&gt;
Create a fat32 system with the name `Alpine`.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mkfs.vfat -n ALPINE /dev/sdX1 }}&lt;br /&gt;
&lt;br /&gt;
== Copy content of ISO image to filesystem ==&lt;br /&gt;
&lt;br /&gt;
It is possible to mount the iso image and copy files with {{codeline|cp}} or {{codeline|rsync}} and it is also possible to use {{codeline|7z}} to extract content from the iso. In this example I will use the {{codeline|uniso}} utility from {{Pkg|alpine-conf}} package.&lt;br /&gt;
&lt;br /&gt;
{{Cmd | mount -t vfat /dev/sdX1 /mnt&lt;br /&gt;
 cd /mnt&lt;br /&gt;
 uniso &amp;lt; /path/to/alpine-3.4.0-x86_64.iso }}&lt;br /&gt;
&lt;br /&gt;
== Unmount the partition ==&lt;br /&gt;
Finally umount the disk&lt;br /&gt;
{{Cmd | cd ~ &amp;amp;&amp;amp; umount /mnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=File:Final_USB_Explorer.png&amp;diff=15616</id>
		<title>File:Final USB Explorer.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=File:Final_USB_Explorer.png&amp;diff=15616"/>
		<updated>2018-12-29T11:45:35Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Final version of what your USB drive should look like.&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=File:USB-Explorer.png&amp;diff=15615</id>
		<title>File:USB-Explorer.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=File:USB-Explorer.png&amp;diff=15615"/>
		<updated>2018-12-29T11:31:51Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When complete the USB drive in explorer should look like this.&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=File:File_Explorer.png&amp;diff=15614</id>
		<title>File:File Explorer.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=File:File_Explorer.png&amp;diff=15614"/>
		<updated>2018-12-29T11:21:30Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Your file explorer should look something like this after extracting everything.&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=File:Rufus_Screenshot.jpg&amp;diff=15613</id>
		<title>File:Rufus Screenshot.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=File:Rufus_Screenshot.jpg&amp;diff=15613"/>
		<updated>2018-12-29T11:12:23Z</updated>

		<summary type="html">&lt;p&gt;Emolitor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Rufus screenshot with partition scheme set to GPT&lt;/div&gt;</summary>
		<author><name>Emolitor</name></author>
	</entry>
</feed>