Ubuntu machines on azure got ephemeral disk that is being automatically mounted on /mnt
I don't want to have this ephemeral drive on /mnt but rather disable it or just move it to another location.
I'm using packer to create my base image on azure.
I've tried to achieve that with cloud-init like so:
mounts:
- [/dev/sdb, null]
and also as with AWS:
mounts:
- [ephemeral0, null]
but that didn't help, so I tried to edit waagent.conf and reboot the machine like so:
sed -i '/s/ResourceDisk.MountPoint=.*/ResourceDisk.MountPoint=\/ephemeral/' /etc/waagent.conf
but that didn't solve the issue either...
Ultimately I would like to solve it with cloud-init as I would like to mount another drive (persist data) on /mnt instead but any solution goes.
Thanks