Substitute "awhile" with "a while" in the sentence "this may/will
take a while". "A while" is the correct form, as it can be rephrased
as "this will take two minutes", compared with "awhile", which is
an adverb and would not make sense in the context of the sentence.