[augeas-devel] [Fwd: [Puppet Users] Re: Augeas and grub.conf]

Matthew Booth mbooth at redhat.com
Thu Aug 6 09:52:34 UTC 2009


On 06/08/09 00:16, David Lutterkort wrote:
> Here's the rub: we can't change the Grub module to look for both
> menu.lst and grub.conf in /boot/grub, since on Fedora menu.lst is a
> symlink for grub.conf, and we'd wind up loading the same file twice into
> different places in the tree, with very weird behavior when you make
> changes to both copies.
>
> We could add some sort of facility to distinguish between OS's[1] and
> load one or the other, depending on OS. I am not perfectly happy with
> this solution, since it requires that users check several places in the
> tree where grub.conf could show up. Addressing that though would require
> some work on mapping trees on load/save, e.g. by adding something to
> transforms that expresses 'put the tree under /this/path/here instead
> of /files/foo/bar'
>
> Also, if we change away from /etc/grub.conf on OS's where it currently
> works, we'd break people's existing code (e.g. Puppet manifests)

Could augeas be clever about this? If it indexed files by fsid/inode, it 
could link parts of the tree that pointed to the same file. In the case 
of a symlink it would obviously have to follow it to a real file.

Matt
-- 
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team

M:       +44 (0)7977 267231
GPG ID:  D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490




More information about the augeas-devel mailing list