Hi Aaron, On Fri, Apr 23, 2010 at 10:34 PM, Aaron Grewell <[email protected]> wrote: > > 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 =
In 0.7.1 this should work! Since I had the same problem, I submitted a patch for 0.7.0. So try the latest version auf augeas. Bye, Frederik > > 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 | [email protected] > > > > 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 > > _______________________________________________ > augeas-devel mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/augeas-devel > _______________________________________________ augeas-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/augeas-devel
