Description of problem: Seems that parser can't handle key such as: Key=value with space Version-Release number of selected component (if applicable): 1.29.29 How reproducible: always Steps to Reproduce: 1. try to parse /usr/lib/systemd/system/sysinit.target.wants/sys-kernel-debug.mount 2. observe error on line 9 3. wonder :)
I'm slightly confused by this bug. What is "line 9"? What is "index parser"? If by "index-parser" you mean the parser in the builder/ directory, then it's a custom parser designed to parse virt-builder metadata, so it wouldn't be surprising that it cannot parse some other random file format. For parsing systemd mount files you probably should be using Augeas.
> (In reply to Richard W.M. Jones from comment #1) > I'm slightly confused by this bug. What is "line 9"? What is > "index parser"? He's referring to the index parser, used in virt-builder to parse INI-like index files. (In reply to Maros Zatko from comment #0) > Description of problem: > Seems that parser can't handle key such as: > Key=value with space This is definitely not true, the index for images shipped on libguestfs.org has keys with spaces, like: name=CentOS 6.6 notes=CentOS 6.6 etc. > 1. try to parse > /usr/lib/systemd/system/sysinit.target.wants/sys-kernel-debug.mount > 2. observe error on line 9 The problem seems to be the empty line(s) before the first section (the commented lines don't matter). This is something which IMHO needs to be fixed regardless, as it may affect also third-parties indexes for virt-builder. I'll post a patch for it soon.
This has been fixed with https://github.com/libguestfs/libguestfs/commit/fc6c16af0b765e39793554db0f55bd75f53fce9f which is in libguestfs >= 1.29.31.