To remaster the Ubuntu 16.04 Server iso into an automatic installer with just enough Ubuntu Server LTS (JeOS) for my workstation/server, with optional full disk encryption, so that I can then use Ansible + pajuna to build out a complete system/workstation.
In here you will find an Ansible playbook that will remaster an Ubuntu LTS iso complete with preseed, encrypted or plain LVM parman recipe, postinstall script and an ssh keypair 'gpg --symetric' encrypted. (password is Rouge1
)
The following requirements should be installed:
- git
- isolinux
- syslinux-utils
- genisoimage
- python
- python-pip
- python-dev
- python-jinja2
- ansible
- Have a copy of
ubuntu-16.04.*-server-amd64.iso
available in theiso/
directory.
Tune playbooks/lukslvm/settings.yml
OR playbooks/plainlvm/settings.yml
Run the playbook
ansible-playbook playbooks/bake.yml -K --extra-vars "DiskType=lukslvm" OR
ansible-playbook playbooks/bake.yml -K --extra-vars "DiskType=plainlvm"
'Burn' the iso to an USB or CDROM and boot it.
dd if=iso/ubuntu-16.04.3-jeos-amd64.iso of=/dev/sd*
# pick the correct device for you USB or CDROM.
Warning: this will wipe your /dev/sd and automatically install Ubuntu*
Note: Currently only works with Ubuntu 16.04 Server amd64 iso with bios and uefi
Author | Mick Pollard (aussielunix at g mail dot com) |
---|---|
Copyright | Copyright (c) 2018 by Mick Pollard |
License | Distributed under the MIT License, see LICENSE |
@aussielunix |