[PATCH virt-install 1/4] virt-install: Set options.disk if the value comes from osinfo-db

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit 45ab922b2c0 moved the code to the way it was before the libosinfo
default changes. However, by not setting "options.disk" the parser will
error out and bail the installation as this option must be set. Only
parsing the disk doesn't seem to be enough as the check is actually done
against "options.disk".

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 virt-install | 1 +
 1 file changed, 1 insertion(+)

diff --git a/virt-install b/virt-install
index 715039fe..3aa643d2 100755
--- a/virt-install
+++ b/virt-install
@@ -500,6 +500,7 @@ def set_resources_from_osinfo(options, guest):
     if res and res.get('storage') > 0:
         diskstr = 'size=%d' % (res.get('storage') // (1024 ** 3))
         logging.debug("Generated default libosinfo '--disk %s'", diskstr)
+        options.disk = [diskstr]
         cli.ParserDisk(guest, diskstr).parse(None)
 
 
-- 
2.20.1

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux