Does virt-edit honers absolute symlink?

Solution Verified - Updated -

Issue

  • Is there any problem in editing file which has symlink through virt-edit ?
  • When editing symlinks using virt-edit on a kvm guest, symlinks are deleted and a copy of the file put in its place.

For example, system starts out with:

/etc/grub.conf -> ../boot/grub/grub.conf

After performing a virt-edit on the guest, the /etc/grub.conf file is no longer a symlink, but a copy of /boot/grub/grub.conf with the changes made during the virt-edit is put in its place.

  • How to prevent deleting symlink when using virt-edit.

Environment

Red Hat Enterprise Linux 6
libguestfs-tools-c-1.16.19-1.el6.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.