summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh
diff options
context:
space:
mode:
authorDirk2011-06-30 00:26:20 +0200
committerDirk2011-06-30 00:26:20 +0200
commit6fef481e06b5249340e0c9282c6edad222312474 (patch)
tree52d8fe1c3aac6ffc8a047201f1b59ccbf99017b9 /src/os-plugins/plugins/vmchooser/XX_vmchooser.sh
parentFixes for SuSE ... (diff)
downloadcore-6fef481e06b5249340e0c9282c6edad222312474.tar.gz
core-6fef481e06b5249340e0c9282c6edad222312474.tar.xz
core-6fef481e06b5249340e0c9282c6edad222312474.zip
...
Diffstat (limited to 'src/os-plugins/plugins/vmchooser/XX_vmchooser.sh')
-rw-r--r--src/os-plugins/plugins/vmchooser/XX_vmchooser.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh b/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh
index 2428622e..cd6d54e5 100644
--- a/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh
+++ b/src/os-plugins/plugins/vmchooser/XX_vmchooser.sh
@@ -77,10 +77,12 @@ if [ -e $CONFFILE ]; then
testmkd /mnt/tmp/virt
# enable normal users to setup the extended virtual machine redo file space
+ # and image source via network block device (NBD only at the moment)
cat >> /mnt/etc/sudoers << EOF
# allow to start and stop the special /tmp redo file space (RAM + NBD/NFS server RAID)
ALL ALL=NOPASSWD: /sbin/losetup /dev/loop*
ALL ALL=NOPASSWD: /sbin/mdadm -C /dev/md0 -l linear --raid-devices=2 /dev/loop* /dev/*
+ALL ALL=NOPASSWD: /opt/openslx/rootfs/usr/sbin/nbd-client * * /dev/nbd*
EOF
# finished ...