Custom RancherOS AMIs

I’ve been playing with RancherOS in EC2 and while everything seems to work great, I’ve run into some problems when trying to create my own base images, derived from the standard RancherOS AMIs.

  1. I start an instance using the latest official RancherOS AMI.
  2. I add some custom files in /home/rancher
  3. I create an image from the running instance via the AWS console
  4. When I start a new instance using the custom image, the files I added to /home/rancher are randomly missing and/or corrupted. Also, any docker images I built on the old instance prior to creating the AMI fail to launch (some symlinks in /var/lib/docker seem to be missing - haven’t looked into this much).

What am I doing wrong?