Talk:Create UEFI boot USB: Difference between revisions

From Alpine Linux
m (Attribution added to unsigned comment.)
 
(2 intermediate revisions by 2 users not shown)
Line 14: Line 14:
In order to make the USB UEFI bootable issue the command:
In order to make the USB UEFI bootable issue the command:


[[export USE_EFI=YES]]
export USE_EFI=YES


before running setup-alpine.
before running setup-alpine.
Line 21: Line 21:
Edit the "/sbin/setup-disk" script and change line 970 ( or thereabouts )  
Edit the "/sbin/setup-disk" script and change line 970 ( or thereabouts )  
from:
from:
     [[local root_size=]]
     local root_size=
to:
to:
     [[local root_size=${ROOT_SIZE}]]
     local root_size=${ROOT_SIZE}
Then
Then
   [[export SWAP_SIZE=0]]
   export SWAP_SIZE=0
   [[export ROOT_SIZE=750]]
   export ROOT_SIZE=750


Before running setup-alpine as normal.
Before running setup-alpine as normal.
Line 35: Line 35:
The setup script creates an annoying dummy swap file in /dev/sdX2
The setup script creates an annoying dummy swap file in /dev/sdX2
which can be safely removed.
which can be safely removed.
<small><span class="autosigned">—&nbsp;Preceding [[Help:Signature|unsigned]] comment added by [[User:Andjames|Andjames]] ([[User talk:Andjames|{{int:talkpagelinktext}}]] • [[Special:Contributions/Andjames|{{int:contribslink}}]]) 09:59, 14 February 2018</span></small>‎

Latest revision as of 01:16, 28 July 2023

Ideally, gummiboot [systemd-boot] should be replaced by grub2 now that it has been consumed by systemd. --OxR463 19:52, 2 June 2017 (UTC)

Hopefully I'm putting this in the correct spot, but I for one would also like to see instructions on configuring a UEFI bootable USB assuming there's already a boot manager such as rEFInd on the target system.Regards, Siernan (talk) 23:13, 14 August 2017 (UTC)

UEFI boot the easy way

I recently had a requirement for a small secure and complete Linux on a USB stick. In order to make it "future proof" the usb should be UEFI bootable. And as regular backups are needed the system should be a small as possible.

So after weeks of trial and error I discovered this:

In order to make the USB UEFI bootable issue the command:

export USE_EFI=YES

before running setup-alpine.

Shrinking the root partition was slightly more complex. Edit the "/sbin/setup-disk" script and change line 970 ( or thereabouts ) from:

   local root_size=

to:

   local root_size=${ROOT_SIZE}

Then

 export SWAP_SIZE=0
 export ROOT_SIZE=750

Before running setup-alpine as normal.

Then you have a less than 1GB fully fuctioning command line Linux which is boots UEFI only.

The setup script creates an annoying dummy swap file in /dev/sdX2 which can be safely removed.

— Preceding unsigned comment added by Andjames (talkcontribs) 09:59, 14 February 2018