summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/XX_vmchooser.sh
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-08-11 15:47:49 +0200
committerDirk von Suchodoletz2009-08-11 15:47:49 +0200
commitd39595f0ce69c4400f284ba63afe6cafd5b0e269 (patch)
tree55625a9b0b603bd1c1cacdefb5f2a1457ceeba8e /os-plugins/plugins/vmchooser/XX_vmchooser.sh
parentdistroutils update (diff)
downloadcore-d39595f0ce69c4400f284ba63afe6cafd5b0e269.tar.gz
core-d39595f0ce69c4400f284ba63afe6cafd5b0e269.tar.xz
core-d39595f0ce69c4400f284ba63afe6cafd5b0e269.zip
Adding creation of run-virt.include (independent of found removable
devices) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3072 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmchooser/XX_vmchooser.sh')
-rw-r--r--os-plugins/plugins/vmchooser/XX_vmchooser.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/os-plugins/plugins/vmchooser/XX_vmchooser.sh b/os-plugins/plugins/vmchooser/XX_vmchooser.sh
index 23ef4611..e7923acc 100644
--- a/os-plugins/plugins/vmchooser/XX_vmchooser.sh
+++ b/os-plugins/plugins/vmchooser/XX_vmchooser.sh
@@ -49,17 +49,22 @@ 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
+ # create run-virt.include header (and fill in information on removable
+ # devices if present
+ echo -n "# run-virt.include created by $0 during stage3 plugin setup" \
+ >/mnt/etc/opt/openslx/run-virt.include
+
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
+ 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
+ echo "floppy_$j=$i" >>/mnt/etc/opt/openslx/run-virt.include
j=$(expr $j + 1)
done