From 924e265f2844f13491b324867c55abf4cb071db0 Mon Sep 17 00:00:00 2001 From: Joerg Schirottke Date: Mon, 3 Feb 2020 19:49:42 +0100 Subject: update virtualbox hook --- config/chroot_local-hooks/virtualbox | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/chroot_local-hooks/virtualbox b/config/chroot_local-hooks/virtualbox index 9fda9ab..dba4fd9 100755 --- a/config/chroot_local-hooks/virtualbox +++ b/config/chroot_local-hooks/virtualbox @@ -1,3 +1,5 @@ #!/bin/bash -[ -x /etc/init.d/vboxdrv ] || exit 0 -/etc/init.d/vboxdrv setup +[ -x /usr/lib/virtualbox/vboxdrv.sh ] || exit 0 +for k in /boot/vmlinuz-*; do + /usr/lib/virtualbox/vboxdrv.sh setup ${k#/boot/vmlinuz-} || : +done -- cgit v1.0