[augeas-devel] Having problems with grub lens

Aaron Grewell aaron.grewell at amdocs.com
Fri Apr 23 20:34:26 UTC 2010


Hi all,
I'm trying to use Augeas 0.7.0 to manipulate grub.conf.  Most modifications work as expected, but adding a kernel option with no parameter value does not.  Augtool gives an error or else produces invalid results.  I grabbed the lens from HEAD to see if the issue was resolved, but it doesn't appear to be.  Examples:

Default state:
augtool> ls /files/etc/grub.conf/title[1]/kernel
ro = (none)
root = LABEL=/
apm = power-off
divider = 10

Set without a value:
augtool> set /files/etc/grub.conf/title[1]/kernel/notsc
Not enough arguments for set

Set using a blank value:
augtool> set /files/etc/grub.conf/title[1]/kernel/notsc ''
augtool> ls /files/etc/grub.conf/title[1]/kernel
ro = (none)
root = LABEL=/
apm = power-off
divider = 10
notsc =

That last one looks like it should work, but unfortunately:
--
grep notsc /boot/grub/grub.conf
        kernel /vmlinuz-2.6.18-128.el5 ro root=LABEL=/ apm=power-off divider=10 notsc=
--
It adds a trailing '=' which makes the kernel unbootable.

How can I add a parameter with no value and no trailing equals sign?

Thanks much,

Aaron Grewell
Systems Engineer
Amdocs IT
2211 Elliott Avenue| Suite 400 | Seattle, WA 98121
o: +1.206.830.7745 | m: +1.206.393.7759 | aaron.grewell at amdocs.com 



This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp




More information about the augeas-devel mailing list