[virt-manager PATCH v2 25/25] virt-install: Deal with "--cdrom" unattended installation

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

 



When dealing with unattended installation, we safely can assume that
"--cdrom" can be treated as "--location". The reason for that is that
we'll need to, under the hooks, extract its kernel/initrd and perform an
initrd injection.

This commit makes "--unattended" work properly when combined with
"--cdrom".

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

diff --git a/virt-install b/virt-install
index a904db2e..22805d4c 100755
--- a/virt-install
+++ b/virt-install
@@ -451,6 +451,9 @@ def build_installer(options, guest):
     has_installer = True
 
     if options.unattended:
+        if options.cdrom:
+            options.location = options.cdrom
+            options.cdrom = None
         options.os_variant.install = "location"
 
     if options.os_variant.install == "location":
-- 
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