Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 2.07 KB

README.md

File metadata and controls

58 lines (36 loc) · 2.07 KB

Boot machine with an Arch Linux dual iso and run

curl -L https://git.io/archlinux-setup | tar --transform 's/-master//' -xz
# modify $drive in `setup.sh` or set `ARCH_SETUP_DRIVE`
./archlinux-setup/setup.sh

If using secure boot follow these instructions to create the boot media:

trizen -S preloader-signed
sudo dd bs=4M if=archlinux-2022.04.05-x86_64.iso of=/dev/sd<X> status=progress oflag=sync
sudo mount /dev/sd<X>2 /mnt
sudo mv /mnt/EFI/BOOT/BOOTx64.EFI /mnt/EFI/BOOT/loader.efi
sudo cp /usr/share/preloader-signed/PreLoader.efi /mnt/EFI/BOOT/bootx64.efi
sudo cp /usr/share/preloader-signed/HashTool.efi /mnt/EFI/BOOT/
sudo umount /mnt

And these steps when booting:

Select OK
In the HashTool main menu, select Enroll Hash, choose \loader.efi and confirm with Yes. Again, select Enroll Hash and archiso to enter the archiso directory, then select vmlinuz.efi and confirm with Yes. Then choose Exit to return to the boot device selection menu.
In the boot device selection menu choose Arch Linux archiso x86_64 UEFI CD

Reboot, login in as user with password user and run

./.archlinux-setup/run.sh

Remove setup folder

rm -r .archlinux-setup

Notes

Development

Serve the repository via

git daemon --base-path=.. --export-all --reuseaddr --informative-errors --verbose

Install git

pacman --cachedir=/tmp -Sy --noconfirm git

Clone with

git clone git://<ip>/archlinux-setup

Run the setup script

./archlinux-setup/setup.sh

Make sure you commit changes so they are cloned across.

The packer folder contains scripts which can also assist in testing.