[augeas-devel] cross-device symlinks and grub.conf

David Lutterkort lutter at redhat.com
Tue Jul 28 12:22:26 UTC 2009


On Mon, 2009-07-27 at 22:19 -0400, Chad Huneycutt wrote:
> If I am not mistaken, augtool is complaining when trying to save
> grub.conf, because it is a symlink to another filesystem
> (/boot/grub/grub.conf). What is the appropriate way to deal with this?

This is possible, but not the default, since the fallback is to copy the
file, which can cause all kinds of nasty races.

If you create a node /augeas/save/copy_if_rename_fails, e.g. with
'set /augeas/save/copy_if_rename_fails foo' before saving, Augeas will
fall back to copying.

David





More information about the augeas-devel mailing list