diff options
Diffstat (limited to 'kvmx-create')
-rwxr-xr-x | kvmx-create | 30 |
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 |