The actual fix to dkms is not adding flushing of stdout. The fix is redirecting /etc/init.d/dkms_autoinstaller output to stderr so that it doesn't send confusing output to debconf via stdout.
The actual fix to dkms is not adding flushing of stdout. d/dkms_ autoinstaller output to stderr so that it doesn't send confusing output to debconf via stdout.
The fix is redirecting /etc/init.