Implementation based on m-p-d::profiles/scripts.d/03-syslinux (but heavily modified for m-p of course)