Arch – Create ISO file which automatically boots into installation process
Download the arch ISO file:
http://mirror.rackspace.com/archlinux/iso/latest/
mkdir /tmp/arch mount archlinux-2017.08.01-x86_64.iso /tmp/arch
cp -r /tmp/arch ~/arch cd arch
unsquashfs arch/x86_64/airootfs.sfs
cd squashfs-root mount -t proc proc proc/ mount -t sysfs sys sys/ mount -o bind /dev dev/ cd ..
chroot squashfs-root /bin/bash
passwd systemctl enable systemd-networkd sshd
nano /etc/systemd/system/multi-user.target.wants/sshd.service Change After=network.target to After=network-online.target
ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key ssh-keygen -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key ssh-keygen -N "" -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key ssh-keygen -N "" -t ed25519 -f /etc/ssh/ssh_host_ed25519_key #maybe copy your ssh key in the authorized_keys
nano /etc/systemd/network/wan.network [Match] Name=ens3 [Network] DNS=192.168.2.1 Address=192.168.2.180/24 Gateway=192.168.2.1
rm /usr/bin/dhcpcd exit
rm arch/x86_64/airootfs.sfs
cd squashfs-root umount proc umount sys umount dev cd ..
mksquashfs squashfs-root arch/x86_64/airootfs.sfs rm -r squashfs-root
nano arch/boot/syslinux/archiso.cfg DEFAULT select PROMPT 0 TIMEOUT 50 DEFAULT arch64 LABEL arch64 TEXT HELP Boot the Arch Linux (x86_64) live medium. It allows you to install Arch Linux or perform system maintenance. ENDTEXT MENU LABEL Boot Arch Linux (x86_64) LINUX boot/x86_64/vmlinuz INITRD boot/intel_ucode.img,boot/x86_64/archiso.img APPEND archisobasedir=arch archisolabel=ARCH_201708
genisoimage -l -r -J -V "ARCH_201708" -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -c isolinux/boot.cat -o /tmp/arch-autoboot.iso ./
cd umount /tmp/arch rm -rf /root/arch
Now you have your arch-autoboot.iso file under /tmp