[augeas-devel] [Augeas] #199: Failure to parse menu.lst on SLES11 SP1
Augeas
trac at fedorahosted.org
Wed May 11 20:19:31 UTC 2011
#199: Failure to parse menu.lst on SLES11 SP1
----------------------+-----------------------------------------------------
Reporter: gaferion | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.8.0
Keywords: |
----------------------+-----------------------------------------------------
On a freshly built SLES11 SP1 system augeas is not parsing my menu.lst. I
get as an error:
{{{
augtool> ls /augeas/files/boot/grub/menu.lst/error/
pos = 286
line = 9
char = 0
lens = /usr/local/share/augeas/lenses/dist/grub.aug:179.14-.63:
message = Iterated lens matched less than it should
}}}
This seems to stem that in SLES11 you can use the old method of specifying
a device with 'root (hd#,#)' and a new method where the device to use is
included into the kernel line as " kernel
(hd0,0)/vmlinuz-2.6.32.27-0.2-default args"
So the following 'new style' entry does not work with augeas:
{{{
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux Enterprise Server 11 SP1 - 2.6.32.27-0.2
kernel (hd0,0)/vmlinuz-2.6.32.27-0.2-default
root=/dev/vg_rootdisk/lv_root resume=/dev/vg_rootdisk/lv_swap
splash=silent showopts
initrd (hd0,0)/initrd-2.6.32.27-0.2-default
}}}
Whereas the 'old style' equivilant works fine with augeas:
{{{
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux Enterprise Server 11 SP1 - 2.6.32.27-0.2
root (hd0,0)
kernel /vmlinuz-2.6.32.27-0.2-default root=/dev/vg_rootdisk/lv_root
resume=/dev/vg_rootdisk/lv_swap splash=silent showopts
initrd /initrd-2.6.32.27-0.2-default
}}}
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/199>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list