summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/XX_vmchooser.sh
diff options
context:
space:
mode:
authorMichael Janczyk2009-03-05 21:47:42 +0100
committerMichael Janczyk2009-03-05 21:47:42 +0100
commit0d77711a68df9dd68d240a81a5142a4923ff7f00 (patch)
treed73e7bb6b6231d06f810e201af1cf4336d7f58ef /os-plugins/plugins/vmchooser/XX_vmchooser.sh
parentStage3 fixes for Scientific Linux 5.1 ... (diff)
downloadcore-0d77711a68df9dd68d240a81a5142a4923ff7f00.tar.gz
core-0d77711a68df9dd68d240a81a5142a4923ff7f00.tar.xz
core-0d77711a68df9dd68d240a81a5142a4923ff7f00.zip
added cdrom and floppy support to virtualization
optimized (hopefully) preferences and vmx for vmware git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2682 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmchooser/XX_vmchooser.sh')
-rw-r--r--os-plugins/plugins/vmchooser/XX_vmchooser.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/os-plugins/plugins/vmchooser/XX_vmchooser.sh b/os-plugins/plugins/vmchooser/XX_vmchooser.sh
index 59af5e8e..74c53c8e 100644
--- a/os-plugins/plugins/vmchooser/XX_vmchooser.sh
+++ b/os-plugins/plugins/vmchooser/XX_vmchooser.sh
@@ -51,6 +51,20 @@ if [ -e $CONFFILE ]; then
mount -n -t msdos -o loop,umask=000 /mnt/var/lib/virt/vmchooser/loopimg/fd.img \
/mnt/var/lib/virt/vmchooser/fd-loop
+ waitfor /etc/hwinfo.cdrom
+ j=0
+ for i in $(cat /etc/hwinfo.cdrom); do
+ echo "cdrom$j=$i" >> /mnt/etc/opt/openslx/run-virt.include
+ j=$(expr $j + 1)
+ done
+
+ waitfor /etc/hwinfo.floppy
+ j=0
+ for i in $(cat /etc/hwinfo.floppy); do
+ echo "floppy$j=$i" >> /mnt/etc/opt/openslx/run-virt.include
+ j=$(expr $j + 1)
+ done
+
# finished ...
[ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmchooser' os-plugin ..."
fi