Drop smbd support
This commit is contained in:
parent
288d779e2c
commit
f061c3a67f
|
@ -268,7 +268,6 @@ You can also pass optional parameters
|
||||||
--snapshot info : Show disk/snapshot info.
|
--snapshot info : Show disk/snapshot info.
|
||||||
--status-quo : Do not commit any changes to disk/snapshot.
|
--status-quo : Do not commit any changes to disk/snapshot.
|
||||||
--fullscreen : Starts VM in full screen mode (Ctl+Alt+f to exit)"
|
--fullscreen : Starts VM in full screen mode (Ctl+Alt+f to exit)"
|
||||||
--no-smb : Do not expose the home directory via SMB.
|
|
||||||
--screen <screen> : Use specified screen to determine the window size.
|
--screen <screen> : Use specified screen to determine the window size.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
17
quickemu
17
quickemu
|
@ -363,23 +363,19 @@ function vm_boot() {
|
||||||
|
|
||||||
echo " - Video: ${DISPLAY_DEVICE}"
|
echo " - Video: ${DISPLAY_DEVICE}"
|
||||||
echo " - GL: ${GL^^}"
|
echo " - GL: ${GL^^}"
|
||||||
echo " - Virgil3D: ${VIRGL^^}"
|
# GL is not working with GTK and virtio-vga
|
||||||
echo " - Display: ${OUTPUT^^}"
|
echo " - Display: ${OUTPUT^^}"
|
||||||
|
|
||||||
# Set the hostname of the VM
|
# Set the hostname of the VM
|
||||||
local NET="user,hostname=${VMNAME}"
|
local NET="user,hostname=${VMNAME}"
|
||||||
|
|
||||||
# If smbd is available, and --no-smb is not set, export $HOME to the guest via samba
|
|
||||||
if [[ -e "/usr/sbin/smbd" && -z ${NO_SMB} ]]; then
|
|
||||||
NET="${NET},smb=${HOME}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${NET} == *"smb"* ]]; then
|
if [ "${GL}" == "on" ] && [ "${DISPLAY_DEVICE}" == "virtio-vga" ]; then
|
||||||
echo " - smbd: ${HOME} will be exported to the guest via smb://10.0.2.4/qemu"
|
DISPLAY_DEVICE="${DISPLAY_DEVICE},virgl=on"
|
||||||
elif [[ ${NO_SMB} -eq 1 ]]; then
|
echo " - Virgil3D: ON"
|
||||||
echo " - smbd: ${HOME} will not be exported to the guest. '--no-smb' is set."
|
|
||||||
else
|
else
|
||||||
echo " - smbd: ${HOME} will not be exported to the guest. 'smbd' not found."
|
echo " - Virgil3D: OFF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find a free port to expose ssh to the guest
|
# Find a free port to expose ssh to the guest
|
||||||
|
@ -624,9 +620,6 @@ else
|
||||||
-shortcut|--shortcut)
|
-shortcut|--shortcut)
|
||||||
SHORTCUT=1
|
SHORTCUT=1
|
||||||
shift;;
|
shift;;
|
||||||
-no-smb|--no-smb)
|
|
||||||
NO_SMB=1
|
|
||||||
shift;;
|
|
||||||
-h|--h|-help|--help)
|
-h|--h|-help|--help)
|
||||||
usage;;
|
usage;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in New Issue