From 0cc6d03a8ccbb9574e7b6693ec1af025b7127d28 Mon Sep 17 00:00:00 2001 From: Anders da Silva Rytter Hansen Date: Wed, 3 Jun 2026 13:38:33 -0300 Subject: [PATCH] save custom systemd service --- .../systemd/system/vboxdrv-modules.service | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 usr/lib/systemd/system/vboxdrv-modules.service diff --git a/usr/lib/systemd/system/vboxdrv-modules.service b/usr/lib/systemd/system/vboxdrv-modules.service new file mode 100644 index 0000000..60f8101 --- /dev/null +++ b/usr/lib/systemd/system/vboxdrv-modules.service @@ -0,0 +1,19 @@ +[Unit] +Description=VirtualBox Linux kernel module +ConditionVirtualization=!container +DefaultDependencies=no +Before=systemd-modules-load.service +After=systemd-udevd.service + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/sbin/modprobe vboxdrv +ExecStart=/sbin/modprobe vboxnetflt +ExecStart=/sbin/modprobe vboxnetadp +ExecStop=/sbin/rmmod vboxnetflt +ExecStop=/sbin/rmmod vboxnetadp +ExecStop=/sbin/rmmod vboxdrv + +[Install] +WantedBy=sysinit.target