Slight modifications for mkbootfs thanks to @osm0sis and his repo.