This is just a comment from a mostly uninterested third party, so take it for what you will.
It sure seems to me that it makes more sense to make 'ubuntu-drivers' take a '--accept-license' flag than to make cloud-init know some seemingly arbitrary wizardry about writing "latelink=true" to a file in /etc/default/linux-modules/nvidia.
This is just a comment from a mostly uninterested third party, so take it for what you will.
It sure seems to me that it makes more sense to make 'ubuntu-drivers' take a '--accept-license' flag than to make cloud-init know some seemingly arbitrary wizardry about writing "latelink=true" to a file in /etc/default/ linux-modules/ nvidia.