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