An earlier revision of this patch had test for invalid lines, but I decided to remove it because deviceinfo is sourced by so many things in pmOS that it should be /very/ obvious that there are invalid lines or other garbage in the file. I also tried to make the parser fairly forgiving if it does encounter things that don't meet the deviceinfo "spec", so that mkinitfs will try as hard as it can to make an initfs.