From 5099879309e11b5e7878324c006cf10cdf72a115 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 9 Mar 2020 15:46:11 +0100 Subject: [vmware-common] Remove ide1:* lines before adding CD-ROM drives At least ide1:*.deviceType lines can survive dozmod filtering, so prevent duplicate line errors, which would prevent vmware form starting up. --- .../opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'core/modules/vmware-common') diff --git a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc index 8fb672b7..a3be118b 100644 --- a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc +++ b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc @@ -60,6 +60,7 @@ setup_ethernet() { setup_optical_drives() { # XXX: For now it's safe to assume ide channel 1 is free, as we support only one HDD. # If it's IDE, it's on channel 0 + sed -i '/^ide1:/d' "${TMPCONFIG}" cat >> "${TMPCONFIG}" <<-HEREEND ide1:0.present = "$CDROM0" ide1:0.autodetect = "TRUE" -- cgit v1.2.3-55-g7522