def METHOD_NAME(sysroot):
    syslinuxpath = sysroot + '/boot/syslinux/syslinux.cfg'
    entries = parse_loader_configs(sysroot)
    syslinux_entries = []
    # Parse SYSLINUX config
    with open(syslinuxpath) as f:
        syslinux_entry = None
        for line in f:
            try:
                k, v = line.strip().split(" ", 1)
            except ValueError:
                continue
            if k == 'DEFAULT':
                if syslinux_entry is not None:
                    syslinux_default = v
            elif k == 'LABEL':
                if syslinux_entry is not None:
                    syslinux_entries.append(syslinux_entry)
                syslinux_entry = {}
                syslinux_entry['title'] = v
            elif k == 'KERNEL':
                syslinux_entry['linux'] = v
            elif k == 'INITRD':
                syslinux_entry['initrd'] = v
            elif k == 'APPEND':
                syslinux_entry['options'] = v
        if syslinux_entry is not None:
            syslinux_entries.append(syslinux_entry)
    if len(entries) != len(syslinux_entries):
        fatal("Found {0} loader entries, but {1} SYSLINUX entries\n".format(
            len(entries), len(syslinux_entries)))
    def assert_key_same_file(a, b, key):
        aval = a[key]
        bval = b[key]
        sys.stderr.write("aval: %r\nbval: %r\n" % (aval, bval))
        # Paths in entries are always relative to /boot
        entry = os.stat(sysroot + "/boot" + aval)
        # Syslinux entries can be relative to /boot (if it's on another filesystem)
        # or relative to / if /boot is on /.
        s1 = os.stat(sysroot + bval)
        s2 = os.stat(sysroot + "/boot" + bval)
        # A symlink ensures that no matter what they point at the same file
        assert_eq(entry, s1)
        assert_eq(entry, s2)
    for i, (entry, syslinuxentry) in enumerate(zip(entries, syslinux_entries)):
        assert_key_same_file(entry, syslinuxentry, 'linux')
        assert_key_same_file(entry, syslinuxentry, 'initrd')
        entry_ostree = get_ostree_option(entry['options'])
        syslinux_ostree = get_ostree_option(syslinuxentry['options'])
        if entry_ostree != syslinux_ostree:
            fatal("Mismatch on ostree option: {0} != {1}".format(
                entry_ostree, syslinux_ostree))
    sys.stdout.write('SYSLINUX configuration validated\n')
    return 0