pentoo / pentoo-installer

Pentoo installer rewritten by Wuodan to be more modular
10 stars 6 forks source link

Run headless from config-file #45

Closed Wuodan closed 6 years ago

Wuodan commented 6 years ago

Testing ISOs and the installer takes a lot of time and manual effort ... until now!

Demo:

emerge -u app-emulation/virtualbox app-emulation/packer app-emulation/vagrant git clone https://github.com/Wuodan/pentoo-packer.git cd pentoo-packer ./pentoo-packer.sh [url-to-iso] ./pentoo-packer.sh http://mirror.switch.ch/ftp/mirror/pentoo/Beta/Pentoo_amd64_hardened/pentoo-amd64-hardened-2018.0_RC8_p20181023.iso vagrant up

This does everything:

  1. Download ISO
  2. Boot from ISO
  3. Update
  4. Install Pentoo (headless, no user interaction)
  5. Boot from disk to installed Pentoo

If anything goes wrong, the build stops and one can inspect the running vm. Logs are in ./packer.log.

Parallel build several different VMs This demo config builds 2 different VMs in parallel. CPU and RAM are different, disk layout for the installer is from one of the sample config files in this PR: https://github.com/Wuodan/pentoo-installer/blob/config-file/config-samples/config.bios.msdos.json

JSON config files This enables the installer to use a json config file for timezone, disk layout, etc. See the samples. Fix for #34

(We could later replace the installers el-cheapo config-format with json.)

Ebuild This requires minor changes to the ebuild: json-reader, sample config-files. See https://github.com/Wuodan/gentoo-overlay/blob/master/pentoo/pentoo-installer/pentoo-installer-20180805.ebuild

Todo Unrelated to this commit - this demo only uses bios not uefi and I was not yet able to get vagrant-ssh to work, which would enable auto-things after the VM reboots.

ZeroChaos- commented 6 years ago

ACK