Use /var/log/installer/autoinstall-user-data according to https://ubuntu.com/server/docs/install/autoinstall. Please remove the following two lines
Code:
kernel:
kernel: {package: linux-generic}