summaryrefslogtreecommitdiffstats
path: root/core/modules/vmware-common
diff options
context:
space:
mode:
authorSimon Rettberg2020-03-09 15:46:11 +0100
committerSimon Rettberg2020-03-09 15:46:31 +0100
commit5099879309e11b5e7878324c006cf10cdf72a115 (patch)
tree3747237765678b549501168a2193c6e2e3c58a8f /core/modules/vmware-common
parent[slx-issue] use /run/openslx as temp dir. (diff)
downloadmltk-5099879309e11b5e7878324c006cf10cdf72a115.tar.gz
mltk-5099879309e11b5e7878324c006cf10cdf72a115.tar.xz
mltk-5099879309e11b5e7878324c006cf10cdf72a115.zip
[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.
Diffstat (limited to 'core/modules/vmware-common')
-rw-r--r--core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc1
1 files changed, 1 insertions, 0 deletions
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"