init: improve detection of serial consoles

Merged Natanael Copa requested to merge ncopa/mkinitfs:serial-consoles into master

Merge request reports