LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.
C cdebiandesktop-environmentebpffirewalllandlocklinuxlinux-distributionopen-sourceprivacyquickjsraspberry-pi-5reactsecuritywaylandwayland-compositor
Load vmwgfx only on VMware itself
Federico Pereiraa829612931a1
diff --git a/tools/iso/mkdeb.sh b/tools/iso/mkdeb.shindex cdc9df4..7c37ce5 100755--- a/tools/iso/mkdeb.sh+++ b/tools/iso/mkdeb.sh@@ -74,6 +74,8 @@ install -D -m 644 tools/iso/rootfs/etc/wireplumber/wireplumber.conf.d/lordos-bluinstall -D -m 644 tools/iso/rootfs/etc/pipewire/pipewire-pulse.conf.d/lordos-no-modules.conf "$PKG/etc/pipewire/pipewire-pulse.conf.d/lordos-no-modules.conf"# in a virtual machine only: more headroom for emulated sound cards (docs/SOUND.md, "Virtual machines")install -D -m 644 tools/iso/rootfs/etc/wireplumber/wireplumber.conf.d/lordos-vm-audio.conf "$PKG/etc/wireplumber/wireplumber.conf.d/lordos-vm-audio.conf"+# vmwgfx only on VMware itself; elsewhere it removes the firmware framebuffer and fails (docs/ISO.md)+install -D -m 644 tools/iso/rootfs/etc/modprobe.d/lordos-vmwgfx.conf "$PKG/etc/modprobe.d/lordos-vmwgfx.conf"# remote login (SSH) defaults, read only once openssh-server is installed (docs/REMOTE.md)install -D -m 644 tools/iso/rootfs/etc/ssh/sshd_config.d/10-lordos.conf "$PKG/etc/ssh/sshd_config.d/10-lordos.conf"# a process may only trace its own descendants: a restricted Linux app must not take over andiff --git a/tools/iso/rootfs/etc/modprobe.d/lordos-vmwgfx.conf b/tools/iso/rootfs/etc/modprobe.d/lordos-vmwgfx.confnew file mode 100644index 0000000..9b8341b--- /dev/null+++ b/tools/iso/rootfs/etc/modprobe.d/lordos-vmwgfx.conf@@ -0,0 +1,6 @@+# LordOS: load vmwgfx only on VMware itself (docs/ISO.md, "Firmware and displays").+# QEMU's VMware-compatible display (Proxmox "VMware compatible") has the same PCI id, but vmwgfx+# refuses it ("unsupported hypervisor", "no pitchlock") after removing the firmware framebuffer,+# which left no display at all: not even the text console that explains what is missing. On VMware+# (DMI vendor "VMware, Inc.") the driver loads as usual. Also applies in the initramfs.+install vmwgfx if grep -qi vmware /sys/class/dmi/id/sys_vendor 2>/dev/null; then /sbin/modprobe --ignore-install vmwgfx $CMDLINE_OPTS; fi