summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmchooser/XX_vmchooser.sh
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-03-10 18:30:31 +0100
committerDirk von Suchodoletz2009-03-10 18:30:31 +0100
commit857e73802f0f9f411c15dd0f57e1a70d84e61303 (patch)
tree4bf9ec24e0a7a0198065c5891067328ee48e33e8 /os-plugins/plugins/vmchooser/XX_vmchooser.sh
parent * get rid of "uninitialized value in pattern match" warning (diff)
downloadcore-857e73802f0f9f411c15dd0f57e1a70d84e61303.tar.gz
core-857e73802f0f9f411c15dd0f57e1a70d84e61303.tar.xz
core-857e73802f0f9f411c15dd0f57e1a70d84e61303.zip
Same problem for loops on AUFS as on UnionFS (thus mount a tempfs first
before parking the loop image) ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2709 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmchooser/XX_vmchooser.sh')
-rw-r--r--os-plugins/plugins/vmchooser/XX_vmchooser.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/os-plugins/plugins/vmchooser/XX_vmchooser.sh b/os-plugins/plugins/vmchooser/XX_vmchooser.sh
index 2a21357c..85362fd2 100644
--- a/os-plugins/plugins/vmchooser/XX_vmchooser.sh
+++ b/os-plugins/plugins/vmchooser/XX_vmchooser.sh
@@ -40,7 +40,7 @@ if [ -e $CONFFILE ]; then
: #|| error "" nonfatal
fi
# mount a clean tempfs (bug in UnionFS prevents loopmount to work)
- strinfile "unionfs" /proc/mounts && \
+ grep -qE "unionfs |aufs " /proc/mounts && \
mount -n -o size=1500k -t tmpfs vm-loopimg /mnt/var/lib/virt/vmchooser/loopimg
# create an empty floppy image of 1.4MByte size
dd if=/dev/zero of=/mnt/var/lib/virt/vmchooser/loopimg/fd.img \