write preseed if it does not exist and add preseed template file.