From d39595f0ce69c4400f284ba63afe6cafd5b0e269 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Tue, 11 Aug 2009 13:47:49 +0000 Subject: 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 --- os-plugins/plugins/vmchooser/XX_vmchooser.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'os-plugins/plugins/vmchooser/XX_vmchooser.sh') 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 -- cgit v1.2.3-55-g7522