Generate configdrive file from string instead of file 2

Change-Id: Ibfa8d423377d05b4382a23447afe4478fb6c5bbb