Improved temporary fix for assigning default UID and GID mappings for linux-VMs.

This commit is contained in:
Raphael Dannecker 2024-06-23 18:02:16 +02:00
parent 2d7372e0c3
commit a3d8fbaa82

View file

@ -120,9 +120,9 @@ create_printerlist() {
start_virtiofsd() {
# BEGIN temporary fix, while linux-starter are not migrated to --uid and --gid
if [[ "$LIBVIRTOSINFO" =~ "debian.*" ]]; then
GUEST_UID=1000
GUEST_GID=1010
if [[ "$LIBVIRTOSINFO" =~ debian.* ]]; then
[[ "$GUEST_UID" == 0 ]] && GUEST_UID=1010
[[ "$GUEST_GID" == 0 ]] && GUEST_GID=1010
fi
# END temporary fix
socket="/run/user/$(id -u $USER)/virtiofs-${VM_NAME}.sock"