aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-10 14:41:33 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-10 14:41:33 -0300
commit820f12fe0394c2aef8ff5ecbd733f525ef22362a (patch)
treeeb6085825e6ecb20a9df9c1032012cbc4599bcfd /kvmx-create
parenta06c7aa6e4d505c0f51c6ed2b7f7bc83e1027a68 (diff)
downloadkvmx-820f12fe0394c2aef8ff5ecbd733f525ef22362a.tar.gz
kvmx-820f12fe0394c2aef8ff5ecbd733f525ef22362a.tar.bz2
Replace rc.local by custom kvmx_up procedures for mounting and vdagent handling
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create30
1 files changed, 0 insertions, 30 deletions
diff --git a/kvmx-create b/kvmx-create
index 9ffeb88..49c6e49 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -233,36 +233,6 @@ function kvmx_create_custom {
echo "Installing sudo..."
$APT_INSTALL sudo -y
echo "%sudo ALL=NOPASSWD: ALL" | $SUDO tee $WORK/etc/sudoers.d/local > /dev/null
- kvmx_sudo_run chmod 440 $WORK/etc/sudoers.d/local
-
- # Initscript
- cat <<-EOF | $SUDO tee $WORK/etc/rc.local > /dev/null
-#!/bin/sh -e
-#
-# rc.local
-#
-# This script is executed at the end of each multiuser runlevel.
-# Make sure that the script will "exit 0" on success or any other
-# value on error.
-#
-# In order to enable or disable this script just change the execution
-# bits.
-#
-# By default this script does nothing.
-
-# Somehow it is starting before DBUS and then crashing, so we try to start again
-/usr/sbin/service spice-vdagent start
-
-# Ensure file sharing between host and guest
-if [ ! -z "$shared_folder_mountpoint" ]; then
- /bin/mkdir -p $shared_folder_mountpoint
- /bin/mount -t 9p -o trans=virtio shared $shared_folder_mountpoint -oversion=9p2000.L,posixacl,cache=loose
-fi
-
-exit 0
-EOF
-
- hydra_sudo_run chmod +x $WORK/etc/rc.local
# Root password
echo 'root:root' | kvmx_sudo_run chroot $WORK/ chpasswd