Red Hat Bugzilla – Bug 751342
Error in parsing /etc/mtab
Last modified: 2016-11-30 19:30:08 EST
Description of problem:
Systemd allows to join multiple cgroup controllers into one item (see `man systemd.conf`, JoinControllers). Default value for this option is:
which results to this line in /etc/mtab:
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
Lens file for /etc/fstab and /etc/mtab forbids having comma in spec definition. So /etc/mtab is not parsed correctly and can't be used by augeas.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run `augtool`
2. print /augeas/files/etc/mtab/error/
/augeas/files/etc/mtab/error = "parse_failed"
/augeas/files/etc/mtab/error/pos = "936"
/augeas/files/etc/mtab/error/line = "14"
/augeas/files/etc/mtab/error/char = "0"
/augeas/files/etc/mtab/error/lens = "/usr/share/augeas/lenses/dist/fstab.aug:32.12-.42:"
/augeas/files/etc/mtab/error/message = "Iterated lens matched less than it should"
Committed a fix as commit e988a577 upstream. Will be in the next release (> 0.9.0)