How to automate bare metal install?

To answer my own question: you can mount in memory. It’s nothing fancy and it might seem confusing because mount only reports an overlay so you might think you have to do something with system-docker, but you don’t. Here’s what would’ve helped me:

  • Use rufus to make your USB; or more importantly, don’t use dd (I just switched over to Windows for this part, but I am happy to hear linux alternatives) – dd will make the FS on your drive read-only so you can’t throw in misc. files like a custom cloud-config. This might also alleviate problems between machines or if you test in virtualbox that use UEFI or not (it did for me).
  • Use blkid and fdisk -l to track down what the file system path is; mine was /dev/sda1
  • Use mount like normal:
$ mkdir /media/usb
$ mount /dev/sda1 /media/usb
1 Like