Ubuntu 18.04 came out April 26, 2018 and I want to try it to upgrade my programs and convert my data but don't want to commit if there are bugs.
I've shrunk Windows from 410 GB to 385 GB, rebooted Ubuntu 16.04 and ran
gparted to create a new 25 GB partition labeled "Ubuntu18.04". I ran
rm-kernels and removed about 20 kernels to eliminate about 10 GB on Ubuntu 16.04.
Now I want a script that will populate the new partition with 16.04 LTS and create a new Grub menu option to it. Only relevant directories should be copied. For example
/dev are virtual directories created during boot and shouldn't be copied.
I also want
/etc/fstab patched with the correct UUID and
cron reboot jobs disabled such that daily backups on cloned data isn't run after booting the clone.
I anticipate running the script many times over the next few weeks/months. As such the cloning process should effortlessly repeatable.
The same script could be used for testing security updates and new Ubuntu Kernel Team updates without effecting production systems.