Skip to content

LukeAngove/ubuntu-autoinstall

Repository files navigation

Ubuntu Installer Generator

This repository is used for creating an automated installer for Ubuntu Desktop using autoinstall. See autoinstall.yaml for most details, it is heavily commented. The other parts of this repo are just simplifying generating the ISO file and testing it.

Files are as follows:

  • autoinstall.yaml: The actual autoinstall commands/file
  • gen_disk.sh: Generates an ISO, assuming xorriso is installed on your system
  • gen_disk_docker.sh: Uses the container built by build_docker
  • build_docker.sh: builds the docker image used by gen_disk_docker.sh
  • qemu.sh: Sets up and runs Qemu with the installer, including TPM and EFI

Running

Assuming you don't have xorriso installed, run the following:

# Download the image you want
wget <address of the Ubuntu version you want> -O ubuntu.iso

./build_docker.sh # Builds docker image
./gen_disk_docker.sh # Builds autoinstall.iso

./qemu.sh # Run qemu to test the installer

If you have xorriso natively, you can skip the docker step, and just run:

# Download the image you want
wget <address of the Ubuntu version you want> -O ubuntu.iso

./gen_disk.sh # Builds autoinstall.iso

./qemu.sh # Run qemu to test the installer

Virtual Machine testing

qemu.sh will make a qemu_test folder and files inside for the TPM, EFI vars and installed image. You can safely clean this up by deleting the directory with rm -r qemu_test.

About

Autoinstall ISO generator for my Ubuntu setup with ZFS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published