Darryl L. Pierce
2009-Oct-30 19:41 UTC
[Ovirt-devel] [PATCH] Persists the libvirt directories storing qemu and storage details.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- scripts/ovirt-config-boot | 4 ++++ scripts/ovirt-config-storage | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index 2961f76..2f1e81d 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -173,6 +173,10 @@ EOF echo "InitiatorName=$(iscsi-iname)" > /etc/iscsi/initiatorname.iscsi ovirt_store_config /etc/iscsi/initiatorname.iscsi + # persist the libvirt directories + ovirt_store_config /etc/libvirt/storage + ovirt_store_config /etc/libvirt/qemu + umount /liveos umount /boot # mark new Root ready to go, reboot() in ovirt-function switches it to active diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage index eed126c..4930095 100755 --- a/scripts/ovirt-config-storage +++ b/scripts/ovirt-config-storage @@ -426,7 +426,7 @@ perform_partitioning() mke2fs -j /dev/HostVG/Data -L "DATA" tune2fs -c 0 -i 0 /dev/HostVG/Data echo "/dev/HostVG/Data /data ext3 defaults 0 0" >> /etc/fstab - echo "/data/images /var/lib/libvirt/images bind bind 0 0" >> /etc/fstab + echo "/data/images /var/lib/libvirt bind bind 0 0" >> /etc/fstab echo "/data/core /var/log/core bind bind 0 0" >> /etc/fstab fi -- 1.6.2.5
Alan Pevec
2009-Oct-30 22:08 UTC
[Ovirt-devel] [PATCH] Persists the libvirt directories storing qemu and storage details.
On Fri, Oct 30, 2009 at 8:41 PM, Darryl L. Pierce <dpierce at redhat.com> wrote:> - ? ? ? ?echo "/data/images /var/lib/libvirt/images bind bind 0 0" >> /etc/fstab > + ? ? ? ?echo "/data/images /var/lib/libvirt bind bind 0 0" >> /etc/fstabI guess you wanted a minimal change, but it would be better to create new directory /data/libvirt/ and bind-mount it to /var/lib/libvirt /data/images/images will be confusing IMHO.