commit d88d148927b1e041e5d153fc471c31135265187d
parent 2495e85893fa15785ccd136196923f20b477aed0
Author: torter <koubbamohamedrayan@gmail.com>
Date: Tue, 17 Nov 2026 23:39:49 +0000
input modules at boot, dhcp in the background, xinit for the session, qemu boots the disk first
Diffstat:
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/files/etc/init.conf b/files/etc/init.conf
@@ -6,7 +6,7 @@ hostname = chamesle
boot-services = {udev,modules,network}
# kernel modules to load by hand
-modules = {virtio_net,e1000,e1000e,r8169,8139too,igb}
+modules = {evdev,psmouse,i8042,atkbd,usbhid,hid_generic,hid_multitouch,i2c_hid_acpi,xhci_pci,virtio_net,e1000,e1000e,r8169,8139too,igb}
# $tty is the name of the line; getty-NAME overrides getty for one line
ttys = {tty1,ttyS0}
diff --git a/files/etc/rc.d/network b/files/etc/rc.d/network
@@ -1,5 +1,5 @@
#!/bin/sh
. /etc/rc.subr
procname=dhcpcd
-svc_start() { mkdir -p /var/db/dhcpcd /run/dhcpcd; dhcpcd; }
+svc_start() { mkdir -p /var/db/dhcpcd /run/dhcpcd; dhcpcd -b; }
run "$1"
diff --git a/files/etc/rc.d/udev b/files/etc/rc.d/udev
@@ -3,7 +3,7 @@
procname=udevd
svc_start() {
udevd --daemon || return
- udevadm trigger && udevadm settle
+ udevadm trigger && udevadm settle -t 5
}
svc_stop() { udevadm control --exit; }
run "$1"
diff --git a/graphical/usr/bin/chamesle-session b/graphical/usr/bin/chamesle-session
@@ -4,5 +4,5 @@ export PLAN9=/opt/plan9
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PLAN9/bin
export HOME=${HOME:-/root}
cd "$HOME"
-startx /etc/X11/xinit/xinitrc -- :0 vt1 -keeptty >"$HOME/.xsession-errors" 2>&1
+xinit /etc/X11/xinit/xinitrc -- /usr/bin/Xorg :0 vt1 -keeptty -nolisten tcp >"$HOME/.xsession-errors" 2>&1
exec /usr/bin/mksh -l
diff --git a/tools/chamesle-vm b/tools/chamesle-vm
@@ -43,7 +43,7 @@ esac
set -- -m "$MEM" -smp "$CPUS" -machine q35 \
-drive if=pflash,format=raw,readonly=on,file="$FW/OVMF_CODE.fd" \
-drive if=pflash,format=raw,file="$dir/vars.fd" \
- -drive file="$DISK",format=raw,if=virtio \
+ -drive file="$DISK",format=raw,if=none,id=d0 -device virtio-blk-pci,drive=d0,bootindex=0 \
-nic user,model=virtio-net-pci -device virtio-rng-pci
[ -w /dev/kvm ] && set -- "$@" -accel kvm -cpu host
if [ "$mode" = iso ] || [ "$mode" = install ]; then
@@ -102,6 +102,6 @@ if [ "$mode" = install ]; then
exit 0
fi
if [ -n "$gui" ]; then
- exec qemu-system-x86_64 "$@"
+ exec qemu-system-x86_64 "$@" -device qemu-xhci -device usb-tablet -monitor unix:"$dir/mon",server,nowait
fi
exec qemu-system-x86_64 "$@" -nographic