Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685008 - app-emulation/libvirt: allow some configuration directories to be symlinks
Summary: app-emulation/libvirt: allow some configuration directories to be symlinks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-03 22:28 UTC by William Hubbs
Modified: 2019-05-09 19:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libvirt-fix-init.patch (libvirt-fix-init.patch,684 bytes, patch)
2019-05-06 18:32 UTC, William Hubbs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William Hubbs gentoo-dev 2019-05-03 22:28:01 UTC
Hi,

I am in a situaation downstream where we would like to have
/etc/libvirt/qemu and /etc/libvirt/storage stored on a separate file
system from /etc.

We are currently doing this with symlinks:

ln -s /some/where/qemu /etc/libvirt/qemu
ln -s /some/where/storage /etc/libvirt/storage

When you do this however, the current start_pre function fails so we
have to hack it.

Are you willing to accept a patch that allows a downstream user to do
this if I write it?

Thanks,

William
Comment 1 William Hubbs gentoo-dev 2019-05-06 18:32:11 UTC
Created attachment 575420 [details, diff]
libvirt-fix-init.patch

This is the patch I propose for the service script.
If a symlink is there, it will allow it, but if it isn't, a directory
will be created.

Let me know your thoughts.

Thanks,

William
Comment 2 Larry the Git Cow gentoo-dev 2019-05-09 19:33:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18caec2e8900630fd5f4951e5b8db56876ec327a

commit 18caec2e8900630fd5f4951e5b8db56876ec327a
Author:     William Hubbs <william.hubbs@sony.com>
AuthorDate: 2019-05-09 19:06:10 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2019-05-09 19:33:18 +0000

    app-emulation/libvirt: 5.2.0-r1 bump
    
    This allows the qemu and storage directories under /etc/libvirt to be
    symbolic links so they can be stored on another file system.
    
    Closes: https://bugs.gentoo.org/685008
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Acked-by: tamiko@gentoo.org
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 app-emulation/libvirt/files/libvirtd.init-r17 |  36 +++
 app-emulation/libvirt/libvirt-5.2.0-r1.ebuild | 392 ++++++++++++++++++++++++++
 2 files changed, 428 insertions(+)